Chapter 3 Terminal Specific Function Library
179
b)
Before receiving data from the network, call
socket_hasdata()
to check if there is
data in the buffer. Then, call
Nread()
to receive data on the network.
Note: In case of an abnormal break during PPP or DUN-GPRS connection,
CheckNetStatus(NET_IPReady) will return -1.
Refer to the Supplemental Functions section for other useful functions.
Close a Connection:
Call
Nclose()
to terminate a particular connection, i.e. conno returned by
Nopen()
,
when the application program does not use it any more.
Termination of Networking Protocol Stack & Wireless Module:
When the application program wishes to stop using the network, call
NetClose()
to
terminate networking and shut down the power to the module so that it can save
power. To enable the network again, it is necessary to call
NetInit()
again.
Note: After calling NetClose(), any previous network connection and data will be lost.
Summary of Contents for Optimus R
Page 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Page 6: ......
Page 8: ...2 C Programming Guide For Optimus S R...
Page 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Page 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Page 24: ...18 C Programming Guide For Optimus S R...
Page 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...