Hi,
I want to write a server program accepting socket connections.
So far i have:
my_socket=new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
g_ws.Bind(ENDPOINT);
g_ws.Listen(10);
So i need an ENDPOINT to bind - so far i have:
IPEndPoint ep; ep=new IPEndPoint(ADDRESS,6543);
where ADDRESS is a long or byte[] - (this is where i am stuck)
How do i get the required ip address (eg 192.168.6.16) to a long or byte[]?
SD
I want to write a server program accepting socket connections.
So far i have:
my_socket=new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
g_ws.Bind(ENDPOINT);
g_ws.Listen(10);
So i need an ENDPOINT to bind - so far i have:
IPEndPoint ep; ep=new IPEndPoint(ADDRESS,6543);
where ADDRESS is a long or byte[] - (this is where i am stuck)
How do i get the required ip address (eg 192.168.6.16) to a long or byte[]?
SD