Yeah, now it worked, to write a Post.
But its late so it will be a short one.
 
I want to write a short application using insim.
Now its the first time I use UDP.
So I have few Problems, I sent the ISI-Packet in main menu, the message appears (Port XXXXX...).
If I want to close LFS it went to hell Sound laggs...
 Sound laggs...
If I sent two packets (ISI and ISC) it worked but I get three logg messages
Insim Init, Insim closed and after the closed one I got the message, that I sent a packet before ISI...
 
I dont think that this are bugs, so what went/ could went wrong
 
Here a short code part
 
                
                    
            But its late so it will be a short one.
I want to write a short application using insim.
Now its the first time I use UDP.
So I have few Problems, I sent the ISI-Packet in main menu, the message appears (Port XXXXX...).
If I want to close LFS it went to hell
 Sound laggs...
 Sound laggs...If I sent two packets (ISI and ISC) it worked but I get three logg messages
Insim Init, Insim closed and after the closed one I got the message, that I sent a packet before ISI...
I dont think that this are bugs, so what went/ could went wrong
Here a short code part
 InSimInit startInsim;
 sprintf(startInsim.Id, "ISI%c", '\0');
 startInsim.Port = 49999;
 startInsim.Flags = 0;
 startInsim.NodeSecs = 0;
 
 InSimPack insimRequest;
 sprintf(insimRequest.Id, "ISC%c", '\0');
 insimRequest.Value = 0;
 lfsSocket.sendMessage((char*)&startInsim,sizeof(struct InSimInit));
 lfsSocket.sendMessage((char*)&insimRequest,sizeof(struct InSimPack));
 //call from sendMessage (smsg char* ssize Port)
 rc = sendto (s,smsg,ssize,0,(SOCKADDR*)&addr,sizeof(SOCKADDR_IN));






