Skip to main content
gamedev.net
🔒 Locked

SDL_Net?

Started by Thanhda Dec 13, 2004 at 2:03 PM 7 replies 1.3k views
Original Post
Thanhda
Thanhda
sorry for this post, you probably have seen this post serveral times, but i would like to ask again. Does anyone have any very basics SDL_Net samples. all i want to know is a server, and a client, where there can me more then one client connected. pretty much something that resembles a chat room. client that can send, and all clients can see what is sent. thanks.
Thanhda TieDigital Shock, Technical Director & Business Relations15-75 Bayly Street West, Suite #173Ajax, Ontario, L1S 7K7Tel: 416.875.1634http://www.digitalshock.net
Grellin
Grellin
There is an example of a client and a host packaged with the library. SDL_net.

If that isn't what you are looking for, let us know.
Steven Bradley .:Personal Journal:. .:WEBPLATES:. .:CGP Beginners Group:. "Time is our most precious resource yet it is the resource we most often waste." ~ Dr. R.M. Powell
Thanhda
Thanhda
it is, but i cant get it to compile, it requires this other api, gui, when i try to link it, it gives me errors
Thanhda TieDigital Shock, Technical Director & Business Relations15-75 Bayly Street West, Suite #173Ajax, Ontario, L1S 7K7Tel: 416.875.1634http://www.digitalshock.net
graveyard filla
graveyard filla
unless your interested in doing lower level stuff, i would recommend checking out a higher level lib. personally i love RakNet. there are other choices though. check out the forum FAQ for a good list of libs.
FTA, my 2D futuristic action MMORPG
Thanhda
Thanhda
is this based on linux/unix only?
Thanhda TieDigital Shock, Technical Director & Business Relations15-75 Bayly Street West, Suite #173Ajax, Ontario, L1S 7K7Tel: 416.875.1634http://www.digitalshock.net
kingnosis
kingnosis
Did you click on the link?

From the top of the page:
Quote:
A free networking API that provides reliable UDP and high level networking constructs on Windows, Linux, and Unix.
Thanhda
Thanhda
okay this is not what i'm looking for, its great and all, but i cant get it to compile, and looks too complicated. as in unessary.
Thanhda TieDigital Shock, Technical Director & Business Relations15-75 Bayly Street West, Suite #173Ajax, Ontario, L1S 7K7Tel: 416.875.1634http://www.digitalshock.net
Khaos Dragon
Khaos Dragon
You may likely have trouble linking to the sdl library because you are only linking to sdl.lib and forgetting to link to sdlmain.lib as well.

Additionally another common problem if you're using VC++ is not changing the code generation to type "multithreaded dll" which can be set at the project properties.
graveyard filla
graveyard filla
Quote:
Original post by Thanhda
okay this is not what i'm looking for, its great and all, but i cant get it to compile, and looks too complicated. as in unessary.


there's nothing really unesesary or complicated about RakNet. any part of it that you do not wish to use you don't have to. also, it is much simpler to use the SDL_Net. in SDL_Net, you have to manage connections, write reliable UDP yourself, etc. RakNet takes care of all of this stuff for you. like i said, if you prefer to be low level and do all that stuff, then go right ahead. however if youd rather spend more time getting right to the game layer of the net code, then choosing a high level lib is a good choice.
FTA, my 2D futuristic action MMORPG

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.