| Concept Framework 2.2 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: Sun Jan 27 18:15:17 2013 GMT | (c)2013 Devronium Applications |