SocketError SocketRemoveLoadOnMsg(
SocketPort p);
If you've requested the Socket library to load a program when it senses packets coming to a port, you can undo that request by calling
SocketRemoveLoadOnMsg()
.
See Also: SocketAddLoadOnMsg().
Include: socket.goh
SocketError SocketRemoveLoadOnMsgInDomain(
SocketPort p,
TCHAR *domain);
If you've requested the Socket library to load a program when it senses packets coming to a port in a given domain, you can undo that request by calling
SocketRemoveLoadOnMsgInDomain()
.
See Also: SocketAddLoadOnMsgInDomain().
Include: socket.goh
int SocketResolve(
char *domainName,
byte *rawAddr,
int addrSize,
byte *result,
int resultBuffSize );
You cannot use an address with other Socket library routines unless that address is in its most primitive form. This primitive form is created by taking a higher-level form of the address and passing it to the
SocketResolve()
routine. You will recall that addresses returned by the address controller will not be in their most primitive form. The primitive form of an address can be volatile: feel free to re-use them if making several connections over a short period of time, but re-resolve the address if it's been a long time since it was last resolved. Note that there can be a large overhead when it comes to resolving addresses.
This routine takes the following arguments:
SACAddress
returned by a SocketAddressControl in response to
MSG_SOCKET_ADDRESS_CONTROL_GET_ADDRESSES
.
SACAddress
.
SACA_opaqueSize
field from a SACAddress returned by a SocketAddressControl in response to
MSG_SOCKET_ADDRESS_CONTROL_GET_ADDRESSES
.
SocketAddress
structure.
It returns the size of the resolved address. If it returns zero, there was an error. Call
ThreadGetError()
to find out what the error was. Typical errors to look out for are SE_BUFFER_TOO_SMALL, SE_DESTINATION_UNREACHABLE, and SE_TEMPORARY_ERROR.
Include: socket.goh
SocketError SocketSend(
Socket s,
void *buffer,
int bufSize,
SocketSendFlags flags,
SocketAddress *addr);
The
SocketSend()
routine sends data over a socket. It takes several arguments:
SocketConnect()
routine to specify a default destination address. If they have no default address, then you must specify the destination address for the packet here. If there is a default destination address and you pass this optional address and those addresses do not match, then the Socket library will generate a fatal error.
Normally,
SocketSend()
will return SE_NORMAL. If it detects an error, it may return some other
SocketError
value.
Include: socket.goh
void SocketSetIntSocketOption(
Socket skt,
SocketOption opt,
int newval);
This routine changes the setting for one of a socket's options.
This routine takes the following arguments:
Include: socket.goh
GEOS SDK TechDocs
|
|
SocketInterrupt() ...
|
SoundAllocMusic() ...