Skip to main content

Thread: SDL_net Questions


i think guys may have missed post......well wondering if guys knew these functions were, did, & when applicable them used? i'm using udp approach working sdl_net. also, how server know packets come can send back?
  • sdlnet_resolvehost( ipaddress * address, char * host, uint16 port )
    • what mean when "host" null?

  • sdlnet_udp_bind( udpsocket sock, int channel, ipaddress * address )
    • what binding , purpose binding?

  • sdlnet_udp_getpeeraddress( udpsocket sock, int channel )
    • when use this?


ps: more detailed list of questions please visit prior post.
http://ubuntuforums.org/showthread.php?t=1795073

thanks,
~cpt_usmc

quote posted cpt_usmc view post
[list][*]sdlnet_resolvehost( ipaddress * address, char * host, uint16 port )
  • what mean when "host" null?
you use null tell listening (a server listens).
quote posted cpt_usmc view post
[*]sdlnet_udp_bind( udpsocket sock, int channel, ipaddress * address )
  • what binding , purpose binding?
binding sockets, asks os "oh, can reserve port x?". in order listen port must bind program.
quote posted cpt_usmc view post
[*]sdlnet_udp_getpeeraddress( udpsocket sock, int channel )
  • when use this?
to ip of computer sent packet.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk SDL_net Questions


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support