Skip to main content

Thread: Network Programing - SDL_net


hello,
ok, i’ve made few games before never messed servers/clients , fun stuff. i’m not creating crazy, in order feet wet i’m messing sdl_net. now, sdl_net has totally awesome documentation person myself, programs hobby, never took class , learned how stuff forums , references, of material going on head. wondering if me head above water (by way working udp approach, though games aren’t demanding, progress figure require this).

example:
sdlnet_resolvehost( ipaddress * address, char * host, uint16 port )
ok, assuming client, “host” name of server client connecting to? know when connecting can use “localhost” outside of that, have no idea. mean enter server’s ipaddress or way more confusing , complicated…lol? , “port” server’s port? , when it’s done, presuming no errors, fill ipaddress’s pointer server’s ip address & port listening on? setting package by, p->address.host = address.host; , p->address.host = address.port; setting package’s destination server right? when server receives packet these variables hold client’s information? mean, how server know came can send back?
ok on flip side…
if relating server set “host” null , creates server type ipaddress on specified port. mean? found documentation saying listening activity, listening activity on specified port? allocate different port listen activity? port receive packets client? if there multiple clients? ipaddress pointer holding server’s address? omg, rapped fired questions…sorry. don’t understand means or why used or when applicable used? , if listing activity wouldn’t sdlnet_socketset more useful or @ least give ability same thing through sdlnet_checksocket , sdlnet_socketready?

example:
sdlnet_udp_bind( udpsocket sock, int channel, ipaddress * address )
for? increase speed of server sending stuff client; way presuming socket pertaining client, , address clients ip, idk?

example:
sdlnet_udp_getpeeraddress( udpsocket sock, int channel )
server use ipaddress of client trying connect? again, don’t know used either or when applicable? sorry long when stuck , need consult forums bring list…lol.

time,
~cpt_usmc



Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Network Programing - SDL_net


Ubuntu

Comments

Popular posts from this blog

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

After Effect warning: A problem occurred when processing OpenGL commands

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