Advertisement

UDP ports

Started by March 10, 2004 03:34 AM
1 comment, last by spree 20 years, 11 months ago
Hello all A week ago I knew nothing about UDP/IP and now becuase of the helpful community I have managed to create 2 class: 1. UDP sender 2. UDP receiver And they are working fine one app sending msgs and the other receives them. now I want to be able for a single app to both send and receive. So I decided that I want to creat one class with both, the ability to send and receive msgs, now my questions are Q: Can I use the same port to send and receive? Q: I need to define only 1 WSADATA wsda and initialize the socket only once? thanks
;)
Q1: Yes, UDP is bi-directional.
Q2: Yep.
Advertisement
One is Server, the other is Client:

Client can send/receive data to/from Server
and
Server can send/receive data to/from Client

decide which one you need.

This topic is closed to new replies.

Advertisement