Back: TCP.AbstractSocket-testing Up: TCP package Forward: TCP.AbstractSocketImpl class-abstract   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

6.2 TCP.AbstractSocketImpl

Defined in namespace TCP
Superclass: FileDescriptor
Category: Sockets-Protocols

6.2.1 TCP.AbstractSocketImpl class: abstract  (class)
6.2.2 TCP.AbstractSocketImpl class: C call-outs  (class)
6.2.3 TCP.AbstractSocketImpl class: C constants  (class)
6.2.4 TCP.AbstractSocketImpl class: socket creation  (class)
6.2.5 TCP.AbstractSocketImpl: accessing  (instance)
6.2.6 TCP.AbstractSocketImpl: asynchronous operations  (instance)
6.2.7 TCP.AbstractSocketImpl: C call-outs  (instance)
6.2.8 TCP.AbstractSocketImpl: socket operations  (instance)
6.2.9 TCP.AbstractSocketImpl: socket options  (instance)


6.2.1 TCP.AbstractSocketImpl class: abstract

addressClass
Answer the class responsible for handling addresses for the receiver

protocol
Answer the protocol parameter for `create'

socketType
Answer the socket type parameter for `create'.


6.2.2 TCP.AbstractSocketImpl class: 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
Not commented.

receive: socket buffer: buf size: len flags: flags from: addr size: addrLen
Not commented.

send: socket buffer: buf size: len flags: flags to: addr size: addrLen
Not commented.


6.2.3 TCP.AbstractSocketImpl class: C constants

soError
Not commented.

soLinger
Not commented.

soReuseAddr
Not commented.

sockDgram
Not commented.

sockRDM
Not commented.

sockRaw
Not commented.

sockStream
Not commented.

solSocket
Not commented.


6.2.4 TCP.AbstractSocketImpl class: socket creation

new
Create a socket for the receiver.


6.2.5 TCP.AbstractSocketImpl: accessing

connectTo: ipAddress port: port
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).


6.2.6 TCP.AbstractSocketImpl: asynchronous operations

ensureReadable
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
Not commented.

receive: socket buffer: buf size: len flags: flags from: addr size: addrLen
Not commented.

send: socket buffer: buf size: len flags: flags to: addr size: addrLen
Not commented.


6.2.8 TCP.AbstractSocketImpl: socket operations

accept: implementationClass
Accept a connection on the receiver, and create a new instance of implementationClass that will deal with the newly created active server socket.

addressClass
Answer the class responsible for handling addresses for the receiver

bindTo: ipAddress port: port
Bind the receiver to the given IP address and port. `Binding' means attaching the local endpoint of the socket.

fileOp: ioFuncIndex
Private - Used to limit the number of primitives used by FileStreams

fileOp: ioFuncIndex ifFail: aBlock
Private - Used to limit the number of primitives used by FileStreams.

fileOp: ioFuncIndex with: arg1
Private - Used to limit the number of primitives used by FileStreams

fileOp: ioFuncIndex with: arg1 ifFail: aBlock
Private - Used to limit the number of primitives used by FileStreams.

fileOp: ioFuncIndex with: arg1 with: arg2
Private - Used to limit the number of primitives used by FileStreams

fileOp: ioFuncIndex with: arg1 with: arg2 ifFail: aBlock
Private - Used to limit the number of primitives used by FileStreams.

fileOp: ioFuncIndex with: arg1 with: arg2 with: arg3
Private - Used to limit the number of primitives used by FileStreams

fileOp: ioFuncIndex with: arg1 with: arg2 with: arg3 ifFail: aBlock
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.



Back: TCP.AbstractSocketImpl-socket operations Up: TCP.AbstractSocketImpl Forward: TCP.Datagram   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html