RosettaCodeData/Task/Sockets/Nemerle/sockets.nemerle

14 lines
314 B
Text
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
using System.Text;
using System.Net.Sockets;
module Program
{
Main() : void
{
def sock = Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
sock.Connect("127.0.0.1", 1000);
_ = sock.Send(Encoding.ASCII.GetBytes("Hell, world!"));
sock.Close();
}
}