Find the answer to your Linux question:
Results 1 to 2 of 2
[/b] Hello all ! I am new to Linux. I want to know how to perform data transfer between client and server bidirectionaly using socket programming.. Anyone have idea please ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2005
    Posts
    2

    Bidirectional data transfer !!!


    [/b]
    Hello all !

    I am new to Linux.

    I want to know how to perform data transfer between client and server bidirectionaly using socket programming..

    Anyone have idea please tell me..

    By

    S.S.G
    [b]

  2. #2
    Just Joined!
    Join Date
    Aug 2005
    Location
    Belgrade, Serbia
    Posts
    8
    You should use functions like socket(), bind(), listen(), accept() on server side, and socket(), connect() on client side. Check http://www.die.net to learn more about these functions. For exchanging data, use send() and recv(), or similar.

    Also, for closing connection, see close() and shutdown(). I can send you a complete simple example (source code) about this topic. Just e-mail me at asutic[at]gmail[dot]com.

    A newbie to newbie ...

    Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •