How to make a server being server and client simultaneously
55 views
Skip to first unread message
GopherNewbie
unread,
Jan 15, 2020, 2:59:06 AM1/15/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
Hello Gophers,
I programmed a server (A) that listens on 2 different ports, but I would like to change one of the ports to be sending the client's received requests to another server (B) so that when the server (B) replies the server (A) sends the answer to that specific client.
I got some issues with goroutines and channels
note:
- We can have more than one client ( each client should only get what they sent )
- The comments in the codes show how I was thinking to do it.