![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |
|
|
#1 (permalink) |
|
Fixed Error!
Posts: 4,202
Join Date: Mar 2007
Rep Power: 6
IM:
|
If you connect to the internet using a high speed connection from our office and you like to have an App that can communicate messages to GPRS enabled devices in the field what do you do. My understanding is that the GPRS mobile device establishs a connection with the provider which in turn assigns an IP address to the device. How does the server app finds the mobile device IP address, and how do you communicate to 100 devices ( for example from one App ). Any example source code in VB is really appreciated. |
|
|
|
|
|
|
|
|
#2 (permalink) |
|
Fixed Error!
Posts: 4,202
Join Date: Mar 2007
Rep Power: 6
IM:
|
u create a new socket instance every time u create a new connection. But, in the wireless world it is very bad practice to keep a connection open when you dont use it. e.g. U have an application on your mobile client that communicates once every hour to the server. On a LAN it is possible to create a socket connection at initialisation and then use for the rest of the time (although this is definetaly not the best way). In the mobile world this is bad practice. Mobiles can be offline, mobiles can get a new ip address, you can create extra traffic ($$$$$) So u need to create a connection every time u want to send sth and break the connection when u finished sending. This way the socket instance (both on server and client) is only alive for the duration of the connection. So unless all ur mobiles talk tothe server at exactly the same time, you never have 100 instances of sockets. Hope this helped. EMC -------------------------------------------------------- If u are satisfied with this answer please accept it. This is the only way to get more mobile experts in this group. -------------------------------------------------------- |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|