kovacsmarcell
kovacsmarcell

Reputation: 461

Using SFML Network with SDL2

I have a program using SDL2, SDL2_ttf, SDL2_image and SDL2_mixer! I thought about using SDL_net for networking but i saw the networking module of SFML and the packet system for TCP and i would like to use ONLY the Network module of SFML from the SFML library.

Is that possible?

Is there a Packet system for SDL_net (the official hasn't got one)?

Upvotes: 2

Views: 602

Answers (1)

Hiura
Hiura

Reputation: 3530

is that possible?

Yes!

Basically, when setting up your project you need to link against sfml-system and sfml-network (and SDL libs of course).

You can then communicate with sockets or use packets and the other features provided by SFML.

The same applies for the audio module, too.

Upvotes: 4

Related Questions