Next: , Previous: , Up: Sockets.Socket   [Index]


6.19.2 Sockets.Socket class: tests

datagramLoopbackTest

Send data from one datagram socket to another on the local machine. Tests most of the socket primitives and works with different processes.

datagramLoopbackTestOn: addressClass

Send data from one datagram socket to another on the local machine. Tests most of the socket primitives and works with different processes.

loopbackTest

Send data from one socket to another on the local machine. Tests most of the socket primitives.

loopbackTest: bufferSizes

Send data from one socket to another on the local machine. Tests most of the socket primitives. The parameter is the size of the input and output buffer sizes.

loopbackTest: bufferSizes addressClass: addressClass

Send data from one socket to another on the local machine. Tests most of the socket primitives. The parameters are the size of the input and output buffer sizes, and the address class (family) to use.

loopbackTestOn: addressClass

Send data from one socket to another on the local machine. Tests most of the socket primitives. The parameter is the address class (family) to use.

microTest

Extremely small test (try to receive SMTP header)

producerConsumerTest

Send data from one datagram socket to another on the local machine. Tests most of the socket primitives and works with different processes.

producerConsumerTestOn: addressClass

Send data from one socket to another on the local machine. Tests most of the socket primitives and works with different processes.

sendTest

Send data to the ’discard’ socket of localhost.

sendTest: host

Send data to the ’discard’ socket of the given host. Tests the speed of one-way data transfers across the network to the given host. Note that many hosts do not run a discard server.

testPort2For: anAddressClass

Not commented.

testPortFor: anAddressClass

Not commented.

tweakedLoopbackTest

Send data from one socket to another on the local machine, trying to avoid buffering overhead. Tests most of the socket primitives. Comparison of the results of loopbackTest and tweakedLoopbackTest should give a measure of the overhead of buffering when sending/receiving large quantities of data.


Next: , Previous: , Up: Sockets.Socket   [Index]