Reputation: 681
i have a Server socket using an async functions to allow a client socket to connect. And when i call Socket.EndAccept() it returns a copy of the client Socket,
i'd like some way for the client socket connecting to get a copy of the Server socket
is this possible?
EDIT: question was rather forumlated weird, sorry, found a solution to the problem though.
The problem was that when i tried to send reply back to the client i used the server socket instead of the socket returned from Socket.endAccept()
Thank you
Upvotes: 1
Views: 481
Reputation: 101192
ehh? You just used it when calling Socket.EndAccept()
?
Socket
is the server socket.
Upvotes: 1