help socket newbie
-
hello ppl well need some start on socket programming i wrote the following code in Visual C++ 6.0 CSocket mysocket; mysocket.Create(); now the problem is here the Create function returns FALSE i tried to find the last error by using the function getLastError and the error no is 109 and i cant get a description of what it means i have used the second version of Create function as well i tried a loop on all the 65535 ports mysocket.Create(i,SOCK_STREAM,"172.16.64.97") but that didnt work either please help me out i have even tried the CAsyncSocket class but that also fails to create a socket please help me out
-
hello ppl well need some start on socket programming i wrote the following code in Visual C++ 6.0 CSocket mysocket; mysocket.Create(); now the problem is here the Create function returns FALSE i tried to find the last error by using the function getLastError and the error no is 109 and i cant get a description of what it means i have used the second version of Create function as well i tried a loop on all the 65535 ports mysocket.Create(i,SOCK_STREAM,"172.16.64.97") but that didnt work either please help me out i have even tried the CAsyncSocket class but that also fails to create a socket please help me out
Go through MFC Sample CHATSRVR code. The chosen One :)