Jump to content

Client/Server

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
dani

dani

    Newbie

  • Members
  • Pip
  • 2 posts
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.

#2
atomicbaum

atomicbaum

    Newbie

  • Members
  • Pip
  • 5 posts
What are you going to use to create it? the Windows API, SDL_Net, Unix sockets...?

#3
dani

dani

    Newbie

  • Members
  • Pip
  • 2 posts
I am going to use unix sockets

#4
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
Look into UDP multicast packets. You don't even need an IP.