Socket Send/receive simultaneously

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eran otzar
    New Member
    • Jan 2011
    • 13

    Socket Send/receive simultaneously

    can any one point out the reason why u cant send and receive on a socket at the same time ?

    to my understanding there are 2 streams one to push and one to pull

    if you attempt to send/receive simultaneously you will get wasealready error

    what is the reason that the socket throws wasealready error (10035)
    does it have any thing to do with the ack window the receiving side sends back ?
    as if to keep the line open for the window ?
  • Jason Mortmer
    New Member
    • Feb 2011
    • 23

    #2
    Dont use Sockets directly, use TcpClient and TcpListener for TCP. You can run the receive on a separate thread, theres no issue will running that thread and sending data elsewhere in the program.

    Comment

    Working...