G
Guest
Greetings to everyone
I'm currently developing a client/server socket library (a bit like TcpClient/TcpListener), using both Udp and Tcp, and I have a couple of points which are still of yet unclear
- is it possible for a socket connection to, simultaneously receive and send with the same client ? Namely, if I have called a receive function (Socket.BeginReceive for instance), is it safe to call a BeginSend after that ? What will happen if data comes at that moment ? I don't know enough about sockets to clear this ; from empirical tests, it seems that simultaneous send/receive is possible between Client A and Client B, but I haven't been able to clear this
- is there a maximum send size for a Tcp socket ? Udp has a max packet size of 64 KB, is there such a limit for Tcp (namely, do I have to fragment data when sending it) or not
Thanks for any answer !
I'm currently developing a client/server socket library (a bit like TcpClient/TcpListener), using both Udp and Tcp, and I have a couple of points which are still of yet unclear
- is it possible for a socket connection to, simultaneously receive and send with the same client ? Namely, if I have called a receive function (Socket.BeginReceive for instance), is it safe to call a BeginSend after that ? What will happen if data comes at that moment ? I don't know enough about sockets to clear this ; from empirical tests, it seems that simultaneous send/receive is possible between Client A and Client B, but I haven't been able to clear this
- is there a maximum send size for a Tcp socket ? Udp has a max packet size of 64 KB, is there such a limit for Tcp (namely, do I have to fragment data when sending it) or not
Thanks for any answer !