Network Sockets

06/19/2018 11:07 ReviveSRO#1
Instead of the TcpListener here
Code:
gateway_server = new TcpListener(IPAddress.Parse("127.0.0.1"), 16000);
gateway_server.Start();
GatewayTunnel = gateway_server.AcceptTcpClient();
gateway_server.Stop();
gateway_server_transferBuffer = new TransferBuffer(4096, 0, 0);
gateway_server_stream = GatewayTunnel.GetStream();
I want to use Socket.Bind, Socket.Listen and then .Accept ... but how do I do it without the GetStream() thing
06/19/2018 19:50 DaxterSoul#2
You can [Only registered and activated users can see links. Click Here To Register...] directly from the Socket you accept, if you need one.

If you're trying to avoid NetworkStream entirely you'll need to use the socket's Receive and Send functions directly instead.
06/20/2018 08:06 ReviveSRO#3
Quote:
Originally Posted by DaxterSoul View Post
If you're trying to avoid NetworkStream entirely you'll need to use the socket's Receive and Send functions directly instead.
The problem is using Send and Receive directly isn't passing any packets. but when using a NetworkStream it works fine. I don't wanna use Stream and want to directly use Send and Receive.

So is there any working example that uses a Socket.Listen instead of a TCPListener
06/21/2018 14:54 AceSpace#4
Is this what you're looking for?
[Only registered and activated users can see links. Click Here To Register...]
06/21/2018 17:18 ReviveSRO#5
Quote:
Originally Posted by Locklyon View Post
Is this what you're looking for?
[Only registered and activated users can see links. Click Here To Register...]
Seems like it.. Thanks Locklyon ... I will read it when I am back home and revert back to this thread with my feedback