simultaneous read & write on socket fd

Discussion in 'Linux Networking' started by Dirk Petera, Sep 15, 2003.

  1. Dirk Petera

    Dirk Petera Guest

    Hello,

    Assume a tcp/ip connection between two Linux platforms established via
    the socket interface. The processes on the two platforms communicate
    through a file descriptor.
    Is it possible to simultaneously read and write on one socket file
    descriptor from 2 threads within the process, i.e. one thread reads
    data the other thread writes data at the same time on the same file descriptor ?

    Or will this screw up my data ?

    Thanks for advice.

    Dirk
     
    Dirk Petera, Sep 15, 2003
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.