Hello, i cannot figure out why this is not working. Currently i can get my server to recieve packets. But no matter what i do the client cannot seem to get any here is my code. Any help would be greatly appreciated.
Server Code (just what is applicable). It receives the packet fine. But it either doesnt send a packet or the client doesnt receive.
if(TcpPackets > 0)
{
// Get data from packet
char * PosX = mnGetStringC(RecvPacket,0,1);
MessageBox(NULL, PosX,"Packet Info",MB_OK);
dbPrintC("Sending Packet: ");
// Relay data to clients
// Formulate packet
mnAddInt(SendPacket,Client);
mnAddInt(SendPacket,Client);
mnSendTCPAll(0,SendPacket,false,false,Client);
dbPrintC("Packet Sent: ");
}
Client
// Check for new TCP messages
int iTCPPackets = mnRecvTCP(0,RecvPacket,NULL);
// If there is a new TCP message
if(iTCPPackets > 0)
{
// Get data from packet
float Client = mnGetFloat(RecvPacket);
float T = mnGetFloat(RecvPacket);
MessageBox(NULL, dbStr(Client),"Packet Info",MB_OK);
}