What is the use of this sockets, plz tell me
## NewSocket
## Socket.Connect
## Socket.Delete
## Socket.Disconnect
## Socket.Send
## Socket.SendClient
## Socket.SetLostConnFunc
## Socket.SetNewConnFunc
## Socket.Start
## Socket.Stop
You can see the source code. Here I give you the arguments of each function.
CSquirrelSockets NewSocket(string pszDataFunc)
CSquirrelSockets
bool Connect(string szHost, int usPort)
void Disconnect(int ucConn)
void Send(string sz)
void SendClient(string sz, int ucConn)
void SetLostConnFunction(string sz)
void SetNewConnFunc(string sz)
bool Start(int usPort, int usMaxConns)
void Stop()
void Delete()
source code https://bitbucket.org/stormeus/0.4-sockets/
It is usually to connect to IRC.
I've filled in the wiki (http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions#Socket_Functions_.28In_the_.22Socket.22_plugin.29).
Once the plugin gets a bug fixed I will post the example on there.
Okay Thanks, Solved, Topic Locked!