Functions | Variables
oculusprimesocket Namespace Reference

Functions

def clearIncoming
def connect
def replyBufferSearch
def sendString
def waitForConnect
def waitForReplySearch

Variables

 connected = False
string host = "127.0.0.1"
int port = 4444
 reconnect = False
 sock = None
 sockfileIO = None

Function Documentation

Clear socket buffer of all incoming server messages

Definition at line 66 of file oculusprimesocket.py.

Make socket connection to server, blocking

returns: True if success, False otherwise

Definition at line 103 of file oculusprimesocket.py.

Search through unread output from server, compare to pattern, return match
stops reading buffer if finds a match

pattern -- regular expression pattern to be searched
returns: first line containing match, or empty string if search fails
non blocking function

Definition at line 79 of file oculusprimesocket.py.

Send single line command to server

s -- command to be sent

Definition at line 20 of file oculusprimesocket.py.

Definition at line 128 of file oculusprimesocket.py.

Read all incoming messages from server, do not return until search match 

pattern -- regular expression pattern to be searched
returns first line containing match, or empty string if server shutdown
blocking function

Definition at line 36 of file oculusprimesocket.py.


Variable Documentation

Definition at line 13 of file oculusprimesocket.py.

string oculusprimesocket::host = "127.0.0.1"

Definition at line 10 of file oculusprimesocket.py.

Definition at line 11 of file oculusprimesocket.py.

Definition at line 14 of file oculusprimesocket.py.

Definition at line 16 of file oculusprimesocket.py.

Definition at line 17 of file oculusprimesocket.py.



oculusprime
Author(s): Colin Adamson
autogenerated on Sat Jun 8 2019 20:04:29