Squeak Class Documentation category index | class index  
 
RemoteHandMorph
  category: Morphic-Support
  superclass: HandMorph
  subclasses:

No comment. Sorry.

instance methods
  connections
  lastEventTransmitted
lastEventTransmitted:
lastWorldExtent
lastWorldExtent:
readyToTransmit
remoteHostAddress
startListening
startTransmittingEvents
startTransmittingEventsTo:
stopListening
stopTransmittingEvents

  event handling
  handleListenEvent:
needsToBeDrawn
processEvents
transmitEvent:

  initialization
  initialize

  meta menu
 

  other
  drawOn:
withdrawFromWorld
worldBounds

  private
  appendNewDataToReceiveBuffer
getNextRemoteEvent
receiveData

class methods
  no messages
 

instance methods
  connections top  
 

lastEventTransmitted


 

lastEventTransmitted:


 

lastWorldExtent


 

lastWorldExtent:


 

readyToTransmit

Return true if the receiver is ready to send.


 

remoteHostAddress

Return the address of the remote host or zero if not connected.


 

startListening

Create a socket and start listening for a connection.


 

startTransmittingEvents

Attempt to broadcast events from this hand to a remote hand on the host with the given address. This method just creates the new socket and initiates a connection; it does not wait for the other end to answer.


 

startTransmittingEventsTo:

Attempt to broadcast events from this hand to a remote hand on the host with the given address. This method just creates the new socket and initiates a connection; it does not wait for the other end to answer.


 

stopListening

Destroy the socket, if any, terminating the connection.


 

stopTransmittingEvents

Stop broadcasting events from this world's cursor to a remote cursor on the host with the given address. This method issues a 'close' but does not destroy the socket; it will be destroyed when the other end reads the last data and closes the connection.


  event handling top  
 

handleListenEvent:

Transmit the event to interested listeners


 

needsToBeDrawn

Return true if this hand must be drawn explicitely instead of being drawn via the hardware cursor. This is the case if it (a) it is a remote hand, (b) it is showing a temporary cursor, or (c) it is not empty. If using the software cursor, ensure that the hardware cursor is hidden.


 

processEvents

Process user input events from the remote input devices.


 

transmitEvent:

Transmit the given event to all remote connections.


  initialization top  
 

initialize


  meta menu top  

  other top  
 

drawOn:

For remote cursors, always draw the hand itself (i.e., the cursor).


 

withdrawFromWorld

Close the socket, if any, and remove this hand from the world.


 

worldBounds


  private top  
 

appendNewDataToReceiveBuffer

Append all available raw data to my receive buffer. Assume that my socket is not nil.


 

getNextRemoteEvent

Return the next remote event, or nil if the receive buffer does not contain a full event record. An event record is the storeString for a MorphicEvent terminated by a <CR> character.


 

receiveData

Check my connection status and withdraw from the world if the connection has been broken. Append any data that has arrived to receiveBuffer.


class methods
  no messages top