GEOS SDK TechDocs
|
|
Modem Connections
|
2 Connecting
Sending and receiving data over a serial line is similar to sending and receiving data through a socket connection. You configure your hardware, make the connection, open streams for sending and receiving data, and close the connection ( i.e. , hang up).
This chapter uses the MTalk sample application to illustrate how to set up and use a modem connection. MTalk establishes a simple "talk" exchange between two devices over a modem connection. It provides user interface for taking text input (which it sends to the other end of the connection) and for displaying data received from the other end of the connection.
(Note: Both mtalk.goc, the sample application discussed in
this chapter, and modem.goc, the module that provides its basic modem
connectivity, live in \APPL\SDK_9000\MTALK\.)
GEOS SDK TechDocs
|
|
Modem Connections
|
2 Connecting