The socket is bidirectional and not.
This depends on the meaning of your question. If you are asking about whether you can both write to and read from the same socket, the answer is yes, the socket is bidirectional, you can write to and also read from the same socket.
On the other hand, you also asked the question about the difference between LocalPort and PeerPort. In that sense, socket is not "bidirectional", as a socket can either act as a server or a client, but not both. If you want the socket to act as a server and listen for connection from client, you create it with LocalPort; if you want the socket to act as a client and initiates teh connection to a server, then you use PeerPort (in which case, a LocalPort on the local is picked for you).
In reply to Re: Bidirectional use of a Socket
by pg
in thread Bidirectional use of a Socket
by scotchfx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |