That might be it, this is the function I'm using for my Send function.
void Client::Send( const char message[] )
{
if( Socket.Send( message, sizeof( message ), ConnectedTo.Address, ConnectedTo.Port ) != sf::Socket::Done )
Debug( "Network", "Error sending Packet" );
else Debug( "Network", "Message Sent" );
}
Here's my Servers Receive Function
void Server::Listen( void )
{
if( Socket.Receive( Data, sizeof( Data ), Received, Sender, Port ) != sf::Socket::Done )
Debug( "Network", "Error receiving Packet" );
else printf( "%s \"%s\"\n", Sender.ToString().c_str(), Data );
}
But if I'm not mistaken that code is near identical to what you used in the SDK Sample, including the sizeof parameter.