Post by DJLinux on May 10, 2009 7:53:02 GMT -5
TCPPlugin[/size]
Download: TCPPlugin.zip
Joshy
TCP Service
Server:
hConnection = TCPCreateServer(Port)
TCPDeleteServer()
False or hClient = TCPClientConnected()
False or hClient = TCPClientDisconnected()
False or hClient = TCPClientData()
Client:
False or hServer = TCPCreateClient(DomainOrIP$,Port)
False or True = TCPDeleteClient(hServer)
False or True = TCPServerData(hServer)
False or True = TCPServerIdle(hServer)
Connections:
hConnection can be hServer or hClient
nBytes = TCPWriteByte(hConnection,Byte)
nBytes = TCPWriteWord(hConnection,Word)
nBytes = TCPWriteInt(hConnection, Integer)
nBytes = TCPWriteSingle(hConnection, Single)
nBytes = TCPWriteIntArray(hConnection, Array)
nBytes = TCPWriteNInts(hConnection, Array, MaxInts)
nBytes = TCPWriteString(hConnection,Send$)
nBytes = TCPReadByte(hConnection, Byte)
nBytes = TCPReadWord(hConnection, Word)
nBytes = TCPReadInt(hConnection, Integer)
nBytes = TCPReadSingle(hConnection, Single)
nBytes = TCPReadIntArray(hConnection, Array)
nBytes = TCPReadNInts(hConnection, Array, MaxInts)
nBytes = TCPReadString(hConnection, Receive$)
FTP Service
Connection:
False or hServer = FTP_Connect(Server$, User$, Password$)
False or True = FTP_Quit(hServer)
False or True = FTP_Disconnect(hServer)
Folder:
Get current work folder from server
False or True = FTP_PWD(hServer, WorkDirectory$)
Change current work folder on server
False or True = FTP_CWD(hServer, NewWorkDirectory$)
Get list of all files sub folders from server
False or True = FTP_LIST(hServer, List$)
File upload:
Store SrcFilePath$ under DstFilePath$ on server
False or True = FTP_STOR(hServer, SrcFilePath$, DstFilePath$)
Store SrcFilePath$ on server the server generates an unique file name returned in DstFilePath$
False or True = FTP_STOU(hServer, SrcFilePath$, DstFilePath$)
File download:
Retreive SrcFilePath$ from server and save it under DstFilePath$
False or True = FTP_RETR(hServer, SrcFilePath$, DstFilePath$)
Game Service
Server:
False or True = RegisterGameServer(GameName$, Port$)
False or True = UnRegisterGameServer(GameName$)
Client:
False or True = GetGameServerInfo(GameName$, IP$,Port$)
Download: TCPPlugin.zip
Joshy
TCP Service
Server:
hConnection = TCPCreateServer(Port)
TCPDeleteServer()
False or hClient = TCPClientConnected()
False or hClient = TCPClientDisconnected()
False or hClient = TCPClientData()
Client:
False or hServer = TCPCreateClient(DomainOrIP$,Port)
False or True = TCPDeleteClient(hServer)
False or True = TCPServerData(hServer)
False or True = TCPServerIdle(hServer)
Connections:
hConnection can be hServer or hClient
nBytes = TCPWriteByte(hConnection,Byte)
nBytes = TCPWriteWord(hConnection,Word)
nBytes = TCPWriteInt(hConnection, Integer)
nBytes = TCPWriteSingle(hConnection, Single)
nBytes = TCPWriteIntArray(hConnection, Array)
nBytes = TCPWriteNInts(hConnection, Array, MaxInts)
nBytes = TCPWriteString(hConnection,Send$)
nBytes = TCPReadByte(hConnection, Byte)
nBytes = TCPReadWord(hConnection, Word)
nBytes = TCPReadInt(hConnection, Integer)
nBytes = TCPReadSingle(hConnection, Single)
nBytes = TCPReadIntArray(hConnection, Array)
nBytes = TCPReadNInts(hConnection, Array, MaxInts)
nBytes = TCPReadString(hConnection, Receive$)
FTP Service
Connection:
False or hServer = FTP_Connect(Server$, User$, Password$)
False or True = FTP_Quit(hServer)
False or True = FTP_Disconnect(hServer)
Folder:
Get current work folder from server
False or True = FTP_PWD(hServer, WorkDirectory$)
Change current work folder on server
False or True = FTP_CWD(hServer, NewWorkDirectory$)
Get list of all files sub folders from server
False or True = FTP_LIST(hServer, List$)
File upload:
Store SrcFilePath$ under DstFilePath$ on server
False or True = FTP_STOR(hServer, SrcFilePath$, DstFilePath$)
Store SrcFilePath$ on server the server generates an unique file name returned in DstFilePath$
False or True = FTP_STOU(hServer, SrcFilePath$, DstFilePath$)
File download:
Retreive SrcFilePath$ from server and save it under DstFilePath$
False or True = FTP_RETR(hServer, SrcFilePath$, DstFilePath$)
Game Service
Server:
False or True = RegisterGameServer(GameName$, Port$)
False or True = UnRegisterGameServer(GameName$)
Client:
False or True = GetGameServerInfo(GameName$, IP$,Port$)