SFML community forums

Help => Network => Topic started by: lordseanington on May 19, 2015, 02:44:51 am

Title: Sending Binary Files Across A Server
Post by: lordseanington on May 19, 2015, 02:44:51 am
I am very confused on how to send a binary file across a network using SFML Udp Sockets. Can anyone clairify the topic or give me a hunk of code on how to send and receive. I am talking about files that can fit in the packet, not multi-packet files.
Title: AW: Sending Binary Files Across A Server
Post by: eXpl0it3r on May 19, 2015, 07:46:31 am
UDP is an unreliable protocol. If you want all your packets to arrive and arrive in order, you should use TCP.

As for the problem, where are you stuck exactly? What is unclear in the tutorials or documentation?
Title: Re: Sending Binary Files Across A Server
Post by: lordseanington on May 19, 2015, 07:52:31 am
Well the main issue I'm having is I'm not sure how I should send the data. Mainly I'm not sure weather to send it through SF::Packet or raw data. The other thing I'm afraid of is the difference in byte order.  I have tried multiple ways to send the binary data an none have worked