socketClient.cpp ( File view )

  • By zcnc 2014-09-29
  • View(s):111
  • Download(s):1
  • Point(s): 1
			#include <stdio.h>
#include <Winsock2.h>
#pragma comment (lib,"ws2_32.lib")

 void main()
 {

  WORD wVersionRequested;
  WSADATA wsaData;
  int err;
  
  wVersionRequested = MAKEWORD( 2, 2 );
  err = WSAStartup( wVersionRequested, &wsaData );
  if ( err != 0 ) {

   return;
  
}
  
  if ( LOBYTE( wsaData.wVersion ) != 2 ||
         HIBYTE( wsaData.wVersion ) != 2 ) {

   WSACleanup( );
   return;
  
}
  SOCKET sockClient=socket(AF_INET,SOCK_STREAM,0);
  
  SOCKADDR_IN addrSrv;
  //addrSrv.sin_addr.S_un.S_addr=inet_addr("127.0.0.1");
  addrSrv.sin_addr.S_un.S_addr=inet_addr("192.168.13.32");
  addrSrv.sin_family=AF_INET;
  addrSrv.
...
...
(Please download the complete source code to view)
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 1

Download
0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
01.97 kB
01.97 kB
01.97 kB
init.bat23.00 B2014-09-28|09:43
socketClient.exe168.07 kB2014-09-28|09:09
socketClient.ilk178.14 kB2014-09-28|09:09
socketClient.obj13.29 kB2014-09-28|09:09
socketClient.pch3.47 MB2014-09-28|09:09
socketClient.pdb425.00 kB2014-09-28|09:09
vc60.idb137.00 kB2014-09-28|09:09
vc60.pdb76.00 kB2014-09-28|09:09
01.97 kB
socketClient.obj1.50 kB2014-09-28|13:37
socketClient.pch3.48 MB2014-09-28|13:37
socketClientOther.exe40.00 kB2014-09-28|13:37
socketClientOther.zip14.38 kB2014-09-28|13:38
vc60.idb41.00 kB2014-09-28|13:37
socketClient.cpp991.00 B2014-09-28|13:35
socketClient.dsp4.25 kB2014-09-25|11:40
socketClient.dsw547.00 B2014-09-25|11:38
socketClient.ncb41.00 kB2014-09-28|13:37
socketClient.opt47.50 kB2014-09-28|13:37
socketClient.plg1.27 kB2014-09-28|13:37
01.97 kB
01.97 kB
socketServer.exe168.07 kB2014-09-28|13:28
socketServer.ilk180.14 kB2014-09-28|13:28
socketServer.obj13.82 kB2014-09-28|13:28
socketServer.pch3.47 MB2014-09-28|13:28
socketServer.pdb345.00 kB2014-09-28|13:28
vc60.idb137.00 kB2014-09-28|13:28
vc60.pdb76.00 kB2014-09-28|13:28
01.97 kB
socketServer.exe40.00 kB2014-09-25|11:37
socketServer.obj1.64 kB2014-09-25|11:37
socketServer.pch3.48 MB2014-09-25|11:37
vc60.idb41.00 kB2014-09-28|09:16
socketServer.cpp1.11 kB2014-09-28|13:28
socketServer.dsp4.25 kB2014-09-25|11:37
socketServer.dsw547.00 B2014-09-25|11:14
socketServer.ncb41.00 kB2014-09-28|13:29
socketServer.opt47.50 kB2014-09-28|13:29
socketServer.plg1.29 kB2014-09-28|13:28
...
Sponsored links

socketClient.cpp (5.13 MB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D