Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example with both receive and send #8

Open
jkleiser opened this issue Apr 29, 2016 · 1 comment
Open

Example with both receive and send #8

jkleiser opened this issue Apr 29, 2016 · 1 comment

Comments

@jkleiser
Copy link

If I want to make an example that e.g. sends a message right after every received message, would it be best to have separate classes InUDPClient and OutUDPClient, or would it be just as fine having a class UDPClient that does both receiving and sending?
I guess receiving and sending should be on separate ports, e.g. 6447 and 6448.

@aturley
Copy link
Owner

aturley commented Apr 29, 2016

From a technical standpoint, using the same socket for sending and receiving is allowed. So from there it's a design question, based on the needs of your application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants