RosettaCodeData/Task/Sockets/Objeck/sockets.objeck

14 lines
264 B
Text
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
use Net;
bundle Default {
class Socket {
function : Main(args : String[]) ~ Nil {
socket := TCPSocket->New("localhost", 256);
if(socket->IsOpen()) {
socket->WriteString("hello socket world");
socket->Close();
}
}
}
}