| View previous topic :: View next topic |
| Author |
Message |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Sun Jun 17, 2012 12:15 pm Post subject: C sabby guise |
|
|
got any tutorial or reference website about sockets connections?
I'm trying to make an app that lets many ppl connect and start sending and receiving data.
(( starting with that in order to put a multiplayer aspect in the game I'm making ))
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Sun Jun 17, 2012 12:18 pm Post subject: |
|
|
are you using berkeley sockets? this is a pretty nice tutorial on sockets:
http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html
it's not sensible to write a network server purely from scratch if you are making a web server. the reason is that you will have to deal with making it standards compliant and conformant to the protocols expected. such low level plumbing is already done by web server products such as apache, lighttpd, etc.
|
|
| Back to top |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Sun Jun 17, 2012 12:22 pm Post subject: |
|
|
I have no knowledge whatsoever with network connections...
C# and XNA gave me a p2p and server/client framework that was very easy to use. Never had to really understand anything to use it.
I'm making Blackberry tablet apps. I just want to get a way to make tablet 1 send " Hey , hello I'm tablet1" to tablet 2 and tablet2 receive the data and then reply" Oh hai tablet 1, I'm tablet 2 . I got ya "
----------------------------------------------------------
Just gave that link a glance and it looks like it is what I need.
Thanks :3
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Sun Jun 17, 2012 12:47 pm Post subject: |
|
|
| oh yeah if you want 2 clients communicate peer to peer then that will work fine
|
|
| Back to top |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Sun Jun 17, 2012 4:36 pm Post subject: |
|
|
if I use sockets to send data language doesnt matter anymore right?
like I make my clients in C for the tablets but I might need to make a server application on a main server to handle "rooms". I can make that in C# or C++ and it shouldn't matter right?
I just hate working on C ....
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Sun Jun 17, 2012 7:33 pm Post subject: |
|
|
| nah. if you have a main web server you would want to build on top of a web server such as apache, lighttpd, etc. that will do all the sending/receiving for you. you simply call APIs. that will handle whatever protocol you want to use too
|
|
| Back to top |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Sun Jun 17, 2012 9:41 pm Post subject: |
|
|
| I'll look into it. thanks
|
|
| Back to top |
|
 |
|