2
Answers

Need some help in socket programming

aadasd asdasda

aadasd asdasda

14y
2.8k
1
I'm trying to write a simple multiplayer game


IPEndPoint IPEP = new IPEndPoint(IPAddress.Any, 4001);

Sunucu =
new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
Sunucu.Bind(ipE);
Sunucu.Listen(5);

Socket
Musterisoketi = Sunucu.Accept();
I create server with these codes, use Musterisoketi.Receive(bytedata) code. This code works and receives data from client but Musterisoketi.Send(bytedata) does not works. I can receive data from client but can not send data from server. How can i solve this problem? If you have some applications that using similiar codes can you send it to me for inspiring?
Answers (2)