Monkey Documentation

Class Socket

Objects of this type act as symbolic handles to "native" socket objects.

More...


Functions:

Detailed Discussion

Objects of this type act as symbolic handles to "native" socket objects.

The exact type this represents depends on the target. Regardless of their original titles, these types may be represented under the name "Socket".

This framework reserves the right to represent underlying socket technologies through other supporting types. In other words, the "native socket" type used may directly correspond to the type "Socket" represents.

To resolve a "Socket" to its native form (Ideal for extension), call GetNativeSocket.


Function Documentation

Function GetNativeSocket : Object ( S:Socket )

This takes S, and retrieves a platform-dependent socket object.

This object may or may not be the same as S. For details, please read the documentation for Socket.

Despite the described prototype, this does not only return an Object handle.

Function GetNativeSocket : Object ( E:NetworkEngine )

This takes the internal Socket object from E, and calls the main overload of this command.

Despite the described prototype, this does not only return an Object handle.