Hi Jaime, You have found a bug!! Some blocks of the addrinfo structure were not being freed. This have been corrected in the version i have just uploaded (1.0.0-pre-4). Thank you for your feedback, Pedro.
2013-04-18 03:58:02 PDT in NetLink Sockets C...
pedropareja made 3 file-release changes.
2013-04-18 03:55:03 PDT in NetLink Sockets C...
pedropareja made 3 file-release changes.
2013-04-18 03:54:03 PDT in NetLink Sockets C...
pedropareja made 1 file-release changes.
2013-04-18 03:53:02 PDT in NetLink Sockets C...
The two most common approaches: * Send the length of the message first of all in your protocol, so the other side continues listening until receiving the total amount of bytes that forms the message. * Use a special sequence to indicate the end of the message, so you continue listening until find that sequence. Regards, Pedro.
2013-04-18 00:09:59 PDT in NetLink Sockets C...
Ok, looks like you are using that code for a purpose different than receiving a webpage using protocol HTML 1.0 (I only can guess as this is only a part of the code). The loop continues listening until the other side disconnects the connection, so if the server you are connecting to does not close the connection after sending the data the loop will continue forever. This example is for...
2013-04-17 10:45:39 PDT in NetLink Sockets C...
Hi Jaime, I would need you to provided me some more info. The code is exactly the example or you have modified something? Could you point the OS and architecture in which you are experiencing that behavior? Kind regards, Pedro.
2013-04-17 07:31:22 PDT in NetLink Sockets C...
Hi Sebastian, Looks like it doesn't get the Winsocks library references. Could you try to exchange the library positions in the compile command? [code]make.exe -f "C:\Users\Public\Documents\PROJEKTE\chatserver\Makefile.win" all g++.exe main.o -o "ChatServer.exe" -L"D:/Dev-Cpp/lib" [b]D:/Dev-Cpp/lib/libwsock32.a libnetlink.a[/b] [/code] Years ago when I...
2012-12-20 08:48:44 PST in NetLink Sockets C...
borstix, I almost forget: you could make a dynamic library (dll) with VC++ and use it with a different compiler (g++ of Mingw32 for instance).
2012-12-17 08:09:47 PST in NetLink Sockets C...
Hi neoleo and borstix, The use and build of this library in linux is similar to any other standard library out there. I have googled to provided some link with info but you have essentially to search for "Build and use static linux libraries" or something like that...
2012-12-17 08:04:42 PST in NetLink Sockets C...