Squeak Class Documentation category index | class index  
 
SocketPlugin
  category: VMConstruction-Plugins
  superclass: TestInterpreterPlugin
  subclasses:

Implement the socket and resolver primitives.

I really think it wouldbe worth a minor rewrite to avoid the sq{plat}Socket.c files refering directly back t the VM -- TPR

instance methods
  initialize-release
  initialiseModule
shutdownModule

  primitives
  intToNetAddress:
netAddressToInt:
primitiveInitializeNetwork:
primitiveResolverAbortLookup
primitiveResolverAddressLookupResult
primitiveResolverError
primitiveResolverLocalAddress
primitiveResolverNameLookupResult
primitiveResolverStartAddressLookup:
primitiveResolverStartNameLookup:
primitiveResolverStatus
primitiveSocket:connectTo:port:
primitiveSocket:getOptions:
primitiveSocket:listenOnPort:
primitiveSocket:listenOnPort:backlogSize:
primitiveSocket:receiveDataBuf:start:count:
primitiveSocket:receiveUDPDataBuf:start:count:
primitiveSocket:sendData:start:count:
primitiveSocket:sendUDPData:toHost:port:start:count:
primitiveSocket:setOptions:value:
primitiveSocketAbortConnection:
primitiveSocketAcceptFrom:rcvBufferSize:sndBufSize:semaIndex:
primitiveSocketAcceptFrom:rcvBufferSize:sndBufSize:semaIndex:readSemaIndex:writeSemaIndex:
primitiveSocketCloseConnection:
primitiveSocketConnectionStatus:
primitiveSocketCreateNetwork:type:receiveBufferSize:sendBufSize:semaIndex:
primitiveSocketCreateNetwork:type:receiveBufferSize:sendBufSize:semaIndex:readSemaIndex:writeSemaIndex:
primitiveSocketDestroy:
primitiveSocketError:
primitiveSocketListenWithOrWithoutBacklog
primitiveSocketLocalAddress:
primitiveSocketLocalPort:
primitiveSocketReceiveDataAvailable:
primitiveSocketRemoteAddress:
primitiveSocketRemotePort:
primitiveSocketSendDone:
socketRecordSize
socketValueOf:

  security primitives
  primitiveDisableSocketAccess
primitiveHasSocketAccess

class methods
  translation
  headerFile

instance methods
  initialize-release top  
 

initialiseModule


 

shutdownModule


  primitives top  
 

intToNetAddress:

Convert the given 32-bit integer into an internet network address represented as a four-byte ByteArray.


 

netAddressToInt:

Convert the given internet network address (represented as a four-byte ByteArray) into a 32-bit integer. Fail if the given ptrToByteArray does not appear to point to a four-byte ByteArray.


 

primitiveInitializeNetwork:


 

primitiveResolverAbortLookup


 

primitiveResolverAddressLookupResult


 

primitiveResolverError


 

primitiveResolverLocalAddress


 

primitiveResolverNameLookupResult


 

primitiveResolverStartAddressLookup:


 

primitiveResolverStartNameLookup:


 

primitiveResolverStatus


 

primitiveSocket:connectTo:port:


 

primitiveSocket:getOptions:


 

primitiveSocket:listenOnPort:

one part of the wierdass dual prim primitiveSocketListenOnPort which was warped by some demented evil person determined to twist the very nature of reality


 

primitiveSocket:listenOnPort:backlogSize:

second part of the wierdass dual prim primitiveSocketListenOnPort which was warped by some demented evil person determined to twist the very nature of reality


 

primitiveSocket:receiveDataBuf:start:count:


 

primitiveSocket:receiveUDPDataBuf:start:count:


 

primitiveSocket:sendData:start:count:


 

primitiveSocket:sendUDPData:toHost:port:start:count:


 

primitiveSocket:setOptions:value:


 

primitiveSocketAbortConnection:


 

primitiveSocketAcceptFrom:rcvBufferSize:sndBufSize:semaIndex:


 

primitiveSocketAcceptFrom:rcvBufferSize:sndBufSize:semaIndex:readSemaIndex:writeSemaIndex:


 

primitiveSocketCloseConnection:


 

primitiveSocketConnectionStatus:


 

primitiveSocketCreateNetwork:type:receiveBufferSize:sendBufSize:semaIndex:


 

primitiveSocketCreateNetwork:type:receiveBufferSize:sendBufSize:semaIndex:readSemaIndex:writeSemaIndex:


 

primitiveSocketDestroy:


 

primitiveSocketError:


 

primitiveSocketListenWithOrWithoutBacklog

Backward compatibility


 

primitiveSocketLocalAddress:


 

primitiveSocketLocalPort:


 

primitiveSocketReceiveDataAvailable:


 

primitiveSocketRemoteAddress:


 

primitiveSocketRemotePort:


 

primitiveSocketSendDone:


 

socketRecordSize

Return the size of a Smalltalk socket record in bytes.


 

socketValueOf:

Return a pointer to the first byte of of the socket record within the
given Smalltalk object, or nil if socketOop is not a socket record.


  security primitives top  
 

primitiveDisableSocketAccess


 

primitiveHasSocketAccess


class methods
  translation top  
 

headerFile

If there is a single intrinsic header file to be associated with the plugin, here is where you want to put it. It will be generated and included automatically.