This is a reference implementation of an IGSCP Parser. It currently
supports the mandatory INFO and the MARK namespace. CONTROL and MOVE are
not yet supported.
Imported modules
|
|
from IGSCP import *
import socket
import string
import types
|
Functions
|
|
|
|
invalid_IGSCP_command
|
invalid_IGSCP_command ( errorCode, arg=None )
An IGSCP error occured. Print a proper message.
Parameters.
errorCode - An integer value, see the constants defined in __init__
arg - An optional string containing the wrong command
|
|
parse_IGSCP
|
parse_IGSCP ( toParse )
Main method of this module: Parse an IGSCP line
|
|
parse_IGSCP_Control
|
parse_IGSCP_Control ( command )
Parse namespace CONTROL
|
|
parse_IGSCP_Info
|
parse_IGSCP_Info ( command, args )
Parse namespace INFO
|
|
parse_IGSCP_Info_Request
|
parse_IGSCP_Info_Request ( command )
Parse namespace INFO:REQUEST
|
|
parse_IGSCP_Mark
|
parse_IGSCP_Mark ( command, args )
Parse namespace MARK
|
|
parse_IGSCP_Move
|
parse_IGSCP_Move ( command )
Parse namespace MOVE
|
|
send_IGSCP_Add_Mark
|
send_IGSCP_Add_Mark (
x,
y,
type,
)
|
|
send_IGSCP_Client
|
send_IGSCP_Client ()
Send INFO:CLIENT
|
|
send_IGSCP_Features
|
send_IGSCP_Features ()
Send INFO:FEATURES
|
|
send_IGSCP_Photo
|
send_IGSCP_Photo ()
Send INFO:PHOTO
|
|
send_IGSCP_Version
|
send_IGSCP_Version ()
Send INFO:VERSION
|