I want to make the following programm.
Using the server/client model I want 2 client to connect to the server then the server sends back to the clients the ip address and a number of a poort in order to open a udp connection between clients without using the server?
What I have done since now is to connecct 2 clients to te server and getting their IPs. But I dont know how to send back the ip to each other in order to help the clients open a udp connection.
Finally I would like to ask how can I open a udp connection between clients using only their ips and a port number without using the server and make the clients able to chat.
I am looking forward to your replies.
Thanks in advance.
PS I have implemented them in c.
Client/Server
Started by dani, Nov 10 2008 04:02 PM
3 replies to this topic
#1
Posted 10 November 2008 - 04:02 PM
|
|
|
#2
Posted 10 November 2008 - 08:39 PM
What are you going to use to create it? the Windows API, SDL_Net, Unix sockets...?
#3
Posted 11 November 2008 - 01:57 AM
I am going to use unix sockets
#4
Posted 11 November 2008 - 07:43 AM
Look into UDP multicast packets. You don't even need an IP.


Sign In
Create Account

Back to top









