Concept Framework 2.0 documentation | Contents | Index |
Name | Version | Deprecated |
SocketCreate | version 1.0 | no |
number SocketCreate(nTYPE=PROTOCOL_TCP) |
nTYPE | protocol type. Can be PROTOCOL_TCP or PROTOCOL_UDP |
Creates a socket. |
import standard.net.socket class Main { function Main() { var s=SocketCreate(); echo "Connecting ... "; if (SocketConnect(s,"localhost",3500)==-1) { echo "Couldn't Connect :"+SocketError(s)+"\n"; return 0; } echo "Connected !\n"; for (var i=0;i<10;i++) echo SocketWrite(s,"SUPERMAN $i !"); SocketClose(s); } } |
Documented by Eduard Suica, generation time: Fri Jan 21 18:06:20 2011 GMT | (c)2011 RadGs Software |