locked
Simultaneous send/receive using Stream Socket (TCP like)

    Question

  • In case of Datagram Socket same socket provide functionality for both sending(connecting) and receiving(listening) data. But in the Stream socket listening is done in a separate class(StreamSocketListener).

    1) How can we map between two classes(StreamSocket & StreamSocketListener) for multiple times send/receive ?

    2) How StreamSocket knows when data arrives ?

    2) Is it possible to use same socket for sending and receiving data multiple times ? If possible how ?

    3) Is it possible to use a single socket for simultaneous sending/receiving at the same time(multiple times) ?

    Monday, August 13, 2012 6:39 PM

Answers

All replies