Welcome to RenEvo Sign in | Join | Help
in
Home IRC Wiisis C&C FarCry Blogs Forums Photos Downloads

Problem with send() with winsock

Last post 12-28-2006, 10:32 AM by Jary. 0 replies.
Sort Posts: Previous Next
  •  12-28-2006, 10:32 AM 557

    Problem with send() with winsock

    Hello all,

    I have some trouble with winsock, when trying to send data. When my socket just recieved data it works well, but when the bot has been inactive for some time, it reads data, it replies (as cout in console), but no data is recieved. Sometimes also, when they are a lot of data, the code skips one data to send, but it is more unusual that the codes does that.

    My simple code to send data is:

    send(mySocket, e, (int) strlen(e), 0);
    

    With e being char e[512], using sprintf to define e. mySocket is an integer which is the socket IP.

    Thanks to anyone who can help me.

     

    **EDIT: Solved.

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems