Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
C sockaddr_in
Name: wille Date: January 10, 2009 at 17:45:44 Pacific OS: Microsoft Windows Vista Home Premium CPU/Ram: 2 GHz DualCore/ 2041 MB Product: Lenovo / 42334dg Subcategory: C/C++
Comment:
Hello, if the subject wasn't clear, I have a problem with winsock using the c language. I have a server and client(TCP) written in c but it doesn't like the sockaddr_in service; and sockaddr_in clientservice; statements. If I compile it in c++ it runs, not giving any errors about this. I believe the error to be that the compiler can not find a reference to sockaddr_in, and can therefor not recognize it. Any thoughts about this? Thanks in advance.
Summary: --------------------Configuration: Socket - Win32 Debug-------------------- Compiling... Socket.cpp C:\cpp\Socket_Win\Socket.cpp(14) : warning C4700: local variable 'sockfd' used without having been i...
Summary: Hallo.. I have some problem with the dev-c++ compiler. I am new to C but try to start using sockets in my programs. I find the simple code for TCP server to listen for connect to me, but did it not w...