Connect the receiver to the given IP address and port. `Connecting'
means attaching the remote endpoint of the socket.
localAddress
Answer the address of the local endpoint of the socket (even if IP
is not being used, this identifies the machine that is bound to the
socket).
localPort
Answer the port of the local endpoint of the socket (even if IP
is not being used, this identifies the service or process that
is bound to the socket).
remoteAddress
Answer the address of the remote endpoint of the socket (even if IP
is not being used, this identifies the machine to which the socket
is connected).
remotePort
Answer the port of the remote endpoint of the socket (even if IP
is not being used, this identifies the service or process to which
the socket is connected).
If the file is open, wait until data can be read from it. The wait
allows other Processes to run.
ensureWriteable
If the file is open, wait until we can write to it. The wait
allows other Processes to run.
waitForException
If the file is open, wait until an exceptional condition (such
as presence of out of band data) has occurred on it. The wait
allows other Processes to run.
6.2.7 TCP.AbstractSocketImpl: C call-outs
accept: socket peer: peer addrLen: len
Not commented.
bind: socket to: addr addrLen: len
Not commented.
connect: socket to: addr addrLen: len
Not commented.
create: family type: type protocol: protocol
Not commented.
getPeerName: socket addr: addr addrLen: len
Not commented.
getSockName: socket addr: addr addrLen: len
Not commented.
listen: socket log: len
Not commented.
option: socket level: level at: name get: value size: len
Not commented.
option: socket level: level at: name put: value size: len
Private - Used to limit the number of primitives used by FileStreams.
getSockName
Retrieve a ByteArray containing a sockaddr_in struct for the
local endpoint of the socket.
listen: backlog
Make the receiver a passive server socket with a pending connections
queue of the given size.
6.2.9 TCP.AbstractSocketImpl: socket options
optionAt: opt level: level put: anObject
Modify the value of a socket option. The option identifier is in
`opt' and the level is in `level'. anObject can be a boolean,
integer, socket address or ByteArray. A layer over this method is
provided for the most common socket options, so this will be rarely
used.
optionAt: opt level: level size: size
Answer in a ByteArray of the given size the value of a socket option.
The option identifier is in `opt' and the level is in `level'. A
layer over this method is provided for the most common socket options,
so this will be rarely used.
soError
Answer the pending error on the socket, or 0 if none
soLinger
Answer the number of seconds by which a `close' operation can block
to ensure that all the packets have reliably reached the destination,
or nil if those packets are left to their destiny.
soLinger: linger
Set the number of seconds by which a `close' operation can block
to ensure that all the packets have reliably reached the destination.
If linger is nil, those packets are left to their destiny.
soReuseAddr
Answer whether another socket can be bound the same local address as this
one. If you enable this option, you can actually have two sockets with the
same Internet port number; but the system won't allow you to use the two
identically-named sockets in a way that would confuse the Internet. The
reason for this option is that some higher-level Internet protocols,
including FTP, require you to keep reusing the same socket number.
soReuseAddr: aBoolean
Set whether another socket can be bound the same local address as this one.
valueWithoutBuffering: aBlock
Evaluate aBlock, ensuring that any data that it writes to the socket
is sent immediately to the network.
This document was generated
on May, 22 2008
using texi2html