Changes between Version 1 and Version 2 of tango.net.Socket.Socket
- Timestamp:
- 06/29/08 23:12:31 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
tango.net.Socket.Socket
v1 v2 1 The '''[http://www.dsource.org/projects/tango/docs/current/tango.net.Socket.html Socket]''' class represents a network connection and is modelled after the Posix socket functions. It can either listen for connections, represent one end of an established connection or simply send and receive datagrams. The socket has an address family, socket type and protocol type. For stream sockets, it is almost always better to use the wrappers[wiki:tango.net.SocketConduit SocketConduit] and [wiki:tango.net.ServerSocket ServerSocket], as those suit Tango's IO model and are easier to use.1 The '''[http://www.dsource.org/projects/tango/docs/current/tango.net.Socket.html Socket]''' class represents a network connection and is modelled after the Posix socket functions. It can either listen for connections, represent one end of an established connection or simply send and receive datagrams. The socket has an address family, socket type and protocol type.It is almost always better to use wrappers like [wiki:tango.net.DatagramConduit DatagramConduit], [wiki:tango.net.MulticastConduit MulticastConduit], [wiki:tango.net.SocketConduit SocketConduit] and [wiki:tango.net.ServerSocket ServerSocket], as those suit Tango's IO model and are easier to use. 2 2 = Address families = 3 3 Address families are implemented by [http://en.wikipedia.org/wiki/Network_layer layer 3] of the [http://en.wikipedia.org/wiki/OSI_model OSI model].