Stop Microsoft

Miscellaneous => Programming & Networking => Topic started by: Stryker on 2 July 2003, 11:54

Title: c++ socket problem
Post by: Stryker on 2 July 2003, 11:54
Anyone know how to properly work the recv() function? I always get something like:

T|||| e|||| s|||| t||||, not quite helpfull.

I looked everywhere, no tutorial or anything goes over the recv function very well.

This is what I have:

Code: [Select]

[ July 02, 2003: Message edited by: Stryker ]

Title: c++ socket problem
Post by: Stryker on 4 July 2003, 04:24
Fixed that one  (http://smile.gif) , now for my new problem  :( , nothing ever works right...

This doesn't seem to be listening, when i try to connect it fails.

Code: [Select]
Title: c++ socket problem
Post by: Stryker on 4 July 2003, 04:33
ha, always fixing my own problems...
addr.sin_port=htons(4000);

got to have that htons...