Class to manage UDP connections, such as OutGauge and OutSim.
This is an abstract method, don't use it directly. See OutGauge and
OutSim to see how to inherit from it.
|
|
|
|
|
|
|
connect(self,
host,
port)
Connect to the specified host and port and begin the packet
listener thread. |
source code
|
|
|
|
|
|
|
__raisePacketEvent(self,
data)
Raise a packet event. |
source code
|
|
|
_getPacket(self,
data)
Virtual method to get the correct packet. |
source code
|
|
|
run(self)
Blocks the calling thread until pyinsim's internal receive thread
has ended. |
source code
|
|
|
|
|
|
|
|
|
__raiseErrorEvent(self,
err)
Raises a thread error event. |
source code
|
|
|
bindError(self,
callback)
Bind a event-handler to be called if the internal receive thread
encounters an error. |
source code
|
|
|
__raiseTimeoutEvent(self,
timeout)
Raise timeout event. |
source code
|
|
|
|
|
_OutSocket__raiseErrorEvent(self,
err)
Raises a thread error event. |
source code
|
|
|
_OutSocket__raisePacketEvent(self,
data)
Raise a packet event. |
source code
|
|
|
_OutSocket__raiseTimeoutEvent(self,
timeout)
Raise timeout event. |
source code
|
|
|
_OutSocket__receiveThread(self)
UDP receive thread. |
source code
|
|