Posted: Fri Apr 19, 2002 6:41 pm
Restored from previous forum. Originally posted by tranquil.
Hi Fred.
Some times ago you asked me to compile some needed NetworkCommands, here we go:
General Commands:
-------------------------------
GetSocketBufferSize() -> Returns the specified size of the Windows Socket-Buffer *
GetSocketBufferUsed() -> Returns the Bytes used in the Socket Buffer *
GetDomain() -> Returns the DomainName of the System
CoundDNS() -> Returns the Number of DNS specified in the System
GetDNS(num) -> Returns the IP of the requested DNS
CountIP() -> Returns the Number of IPs of the System *
GetIP(num) -> Returns the requested IP *
GetInetIP() -> Returns the Internet IP (If available) *
GetHostName() -> Returns the Hostname of the System
GetStructure(socket) -> Returns the Structure-Address of the Socket informations
GetSocketIP(socket) -> Returns the IP of the selected socket *
Server-Commands:
----------------------------
CloseClientConnection(socket) -> Forced the Client to disconnect *
Client-Commands:
---------------------------
ServerSocketEvent() -> Returns the Server-socket which couses an event (VERY importend for multiple connections to more then one server) *
Commands marked with a (*) are very importend to implement in my eyes. Hope I did not forgot anything.
Some other Remarks to the Sprite-Libs:
----------------------------------------------------------
Atm the Sprites are numbered by loading eg LoadSprite(num,path$).
I would prefer the Handle-Methode like hnd=loadsprite(path$) which returns the address of the sprite in memory or a DX-handle to it, thats the way Blitz do,
and its more modular I thing.
Okay, so far....
see you soon!
Mike
Tranquilizer/ Secretly!
Registred PureBasic User
Hi Fred.
Some times ago you asked me to compile some needed NetworkCommands, here we go:
General Commands:
-------------------------------
GetSocketBufferSize() -> Returns the specified size of the Windows Socket-Buffer *
GetSocketBufferUsed() -> Returns the Bytes used in the Socket Buffer *
GetDomain() -> Returns the DomainName of the System
CoundDNS() -> Returns the Number of DNS specified in the System
GetDNS(num) -> Returns the IP of the requested DNS
CountIP() -> Returns the Number of IPs of the System *
GetIP(num) -> Returns the requested IP *
GetInetIP() -> Returns the Internet IP (If available) *
GetHostName() -> Returns the Hostname of the System
GetStructure(socket) -> Returns the Structure-Address of the Socket informations
GetSocketIP(socket) -> Returns the IP of the selected socket *
Server-Commands:
----------------------------
CloseClientConnection(socket) -> Forced the Client to disconnect *
Client-Commands:
---------------------------
ServerSocketEvent() -> Returns the Server-socket which couses an event (VERY importend for multiple connections to more then one server) *
Commands marked with a (*) are very importend to implement in my eyes. Hope I did not forgot anything.
Some other Remarks to the Sprite-Libs:
----------------------------------------------------------
Atm the Sprites are numbered by loading eg LoadSprite(num,path$).
I would prefer the Handle-Methode like hnd=loadsprite(path$) which returns the address of the sprite in memory or a DX-handle to it, thats the way Blitz do,
and its more modular I thing.
Okay, so far....
see you soon!
Mike
Tranquilizer/ Secretly!
Registred PureBasic User