Socket

From Spheriki

Jump to: navigation, search

A socket represents one end of a network connection. All networking communication is done via these sockets.


Contents

Initializers


Methods


Members

None.


Examples

There are two examples already available in this documentation: a client (OpenAddress() example) and a corresponding server (ListenOnPort() example).


Notes

  • Sockets in Sphere use BSD sockets underneath the surface, so they can be used to communicate with almost any network-enabled application on almost any computer. For example, Sphere's socket routines could be used to retrieve a HTML document from a web server via HTTP. Such techniques are beyond the scope of this documentation.
  • Sockets are full-duplex, which means that a single connection can send and receive data at any time, without having to worry about disrupting communication coming from the other end. An analogy to draw from could be the way that two people talk over the phone. Both can talk and hear each other, even if they talk at the same time.


See also

Personal tools