Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Enet and SFML Networking  (Read 3240 times)

0 Members and 1 Guest are viewing this topic.

Grimshaw

  • Hero Member
  • *****
  • Posts: 631
  • Nephilim SDK
    • View Profile
Enet and SFML Networking
« on: January 15, 2012, 12:49:19 pm »
Greetings.

I use Enet for networking right now, and i feel like continue using it, though, i seem to like how the sf::Packet is built.

I wonder if i can use the SFML data packets along with enet ? Anyone tried?

Thanks

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Enet and SFML Networking
« Reply #1 on: January 15, 2012, 12:56:39 pm »
sf::Packet offers methods to get/set the raw byte array, maybe you can use them to interact with Enet.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Elgan

  • Jr. Member
  • **
  • Posts: 77
    • AOL Instant Messenger - Flat+1,+17+st+Cl
    • View Profile
Enet and SFML Networking
« Reply #2 on: January 15, 2012, 01:45:59 pm »
V.cool.

The reason I was going to just use SFML network, is because  of packet.

However....What are the advantages of eNet over just SFML networking?
eNet doesnt do tooo much

mainly it would be speed and "capableness" of dealing with large data.

so...can you send a SFML packet over eNet?
I never played with eNet yet.

what about on send event for encryption  etc>?

 

anything