Help with SDL_Net
Posted: Tue Oct 27, 2009 10:31 pm
Can someone explain using SDL_Net to transfer an int value. I've googled and googled and found only one tutorial on the matter.
http://gpwiki.org/index.php/SDL:Tutorial:Using_SDL_net
Now i understand all of the functions, but i don't understand why you use the function. Oh it returns the port of the computer, why do i need that. Can someone explain how I would go about sending an int value from one computer to another over a peer to peer network ?
P.S.
Like you use this function to open the port. You need to do that first. It makes it possible to send your data through, then you make this loop so...
I just don't understand the rest. Hope this isn't too newbish of a question.
http://gpwiki.org/index.php/SDL:Tutorial:Using_SDL_net
Now i understand all of the functions, but i don't understand why you use the function. Oh it returns the port of the computer, why do i need that. Can someone explain how I would go about sending an int value from one computer to another over a peer to peer network ?
P.S.
Like you use this function to open the port. You need to do that first. It makes it possible to send your data through, then you make this loop so...
I just don't understand the rest. Hope this isn't too newbish of a question.