Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - BIND IP
Search - BIND IP - List
基于TCP/IP的通信基本上都是利用SOCKET套接字进行数据通讯,程序一般分为服务器端和用户端两部分。 第一部分 服务器端   一、创建服务器套接字(create)。   二、服务器套接字进行信息绑定(bind),并开始监听连接(listen)。   三、接受来自用户端的连接请求(accept)。   四、开始数据传输(send/receive)。   五、关闭套接字(closesocket)。 第二部分 用户端   一、创建用户套接字(create)。   二、与远程服务器进行连接(connect),如被接受则创建接收进程。   三、开始数据传输(send/receive)。   四、关闭套接字(closesocket)。
Date : 2008-10-13 Size : 767.51kb User : Liang

基于TCP/IP的通信基本上都是利用SOCKET套接字进行数据通讯,程序一般分为服务器端和用户端两部分。 第一部分 服务器端   一、创建服务器套接字(create)。   二、服务器套接字进行信息绑定(bind),并开始监听连接(listen)。   三、接受来自用户端的连接请求(accept)。   四、开始数据传输(send/receive)。   五、关闭套接字(closesocket)。 第二部分 用户端   一、创建用户套接字(create)。   二、与远程服务器进行连接(connect),如被接受则创建接收进程。   三、开始数据传输(send/receive)。   四、关闭套接字(closesocket)。
Date : 2025-12-27 Size : 767kb User : Liang

DL : 0
在先前已上传的那个版本上做了一点改进: 1.将服务器与客户端之间的通讯命令做了处理,这次采用特殊编码格式的命令控制方式,摒弃了先前版本中采用的通过解码成字符串的命令格式,避免了解码过程中会出现的bug(特殊情况下此bug才会出现,表现为将内部命令作为消息正文打印出来。。。让我很受伤。。) 2.增加了闪屏振动功能(一看就知道模仿MSN的。。没创意。。。),可以群振,也可以点对点振,反正振你没商量! 3.修正了其他的一些小bug。 程序截图还是先前版本的截图,凑合着看看吧,偶懒得再截了。。。 有个朋友发邮件问我在本机测试时为什么服务器开了,客户端死活连不上去,这次服务器启动监听后会打印出绑定到的IP地址及端口号,这样貌似就可以解决了吧。。。。 程序运行需要.NET Framework2.0的支持,以后不会再折腾这玩意了,其实这也就是一个作业而已,貌似就我搞得很来劲。。。总感觉同步的Socket的不会做出很强大的功能出来,bug多的要死,还折腾了这么长时间,伤心。。。以后有时间会尝试一下异步通信,后话了。。。不过就此程序还是欢迎大家一起交流。 :-) -In the previous version that has been uploaded to do a little improvement: 1 server and client communication between the command to do a deal, this time using a special encoding format of the command and control approach instead of the previous version used a string by decoding the command format, to avoid the decoding process will be the bug (a special case of this bug to appear, showing the internal command as the message body will be printed... I am hurt.) (2) increase the splash screen vibration function (see that mimic the MSN.. Not creative 。。。), group of vibration can also be point-vibration, vibration you top anyway! 3. Fixed some other small bug. Program screenshot or screenshots of the previous version, make do with a look at it, even too lazy to cut up. . . Email a friend asked me why the test in the local server opened, life and death Rom to the client, the server will start listening to bind to print out the IP address and port number, so it looks lik
Date : 2025-12-27 Size : 1.42mb User : lzg8688

实现TCP流通信和UDP数据报通信服务端开启服务,根据IP地址和端口号获取网络端点,创建监听Scoket根据网络端点绑定服务器,保持监听状态,接受客户端的连接请求,为连接创建一个新的Scoket(clientScoket),服务端可以根据clientScoket获得该客户端发送的消息和发送消息给客户端。 2,客户端连接服务器,创建一个serverScoket根据客户端的网络端点与服务器建立连接,客户端可以获取服务端的消息也可以发送消息给服务端。 -The TCP stream communication and UDP datagram communication server open service access to network endpoints, based on the IP address and port number, create listening Scoket bind server network endpoints, keep listening state to accept the client' s connection request connection to create a new Scoket (clientScoket), the server can clientScoket the client sends the message and send the message to the client. 2 client to connect to the server, to create a serverScoket according to the client' s network endpoint to establish a connection with the server, the client can get the service end of the message can also send messages to the service side.
Date : 2025-12-27 Size : 118kb User : 郭术
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.