using System;using System.Collections;using System.IO;using System.Net;using System.Net.Sockets;using System.Text;using System.Text.RegularExpressions...
分类:
其他好文 时间:
2014-08-21 18:34:04
阅读次数:
319
Android常用权限记录,根据使用频率排序,方便快速查找,更多权限后续补充功能权限注释翻译访问网络访问网络连接Allows applications to open network sockets网络状态允许程序访问网络状态,如是否能联网Allows applications to access....
分类:
移动开发 时间:
2014-08-18 18:19:12
阅读次数:
298
Winsock是一套开放的、支持多种协议的Windows下网络编程接口。 应用程序通过调用Winsock的API实现互相之间的通信, 而Winsock利用下层的网络通信协议功能和操作系统调用实现实际的通信工作。 sockets(套接字) :是通信的基石,是支持TCP/IP协议的网络通信的基本操...
Server:using System.Net;using System.Net.Sockets;using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ServerCon...
分类:
其他好文 时间:
2014-08-14 19:38:39
阅读次数:
134
服务端代码(Server.cs): 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Net.Sockets; 6 us...
分类:
其他好文 时间:
2014-08-07 12:00:00
阅读次数:
236
首先创建一个服务端程序,这个程序就用VS的控制台程序做就行了。
代码如下:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
namespace SocketServer
{
class Program
...
分类:
其他好文 时间:
2014-08-04 11:04:57
阅读次数:
251
初步研究了win32平台的Windows Sockets,它是Microsoft Windows的网络程序设计接口,它是从Berkeley Sockets扩展而来的,以动态链接库的形式提供给我们使用。包括流式套接字(提供面向连接、可靠的数据传输服务,数据无差错、无重复的发送,且按发送顺序接收。).....
中止Windows Sockets DLL的使用. #include int PASCAL FAR WSACleanup ( void );应用程序或DLL在使用Windows Sockets服务之前必须要进行一次成功的WSAStartup()调用.当它完成了Windows Socket...
分类:
其他好文 时间:
2014-08-02 15:14:23
阅读次数:
193
1.ioctlsocket()简述:控制套接口的模式。#includeintPASCALFARioctlsocket(SOCKETs,longcmd,u_longFAR*argp);s:一个标识套接口的描述字。cmd:对套接口s的操作命令。argp:指向cmd命令所带参数的指针。注释:本函数可用于任...
分类:
其他好文 时间:
2014-08-01 10:38:11
阅读次数:
221
send函数intsend(SOCKETs,constcharFAR*buf,intlen,intflags);不论是客户还是服务器应用程序都用send函数来向TCP连接的另一端发送数据。客户程序一般用send函数向服务器发送请求,而服务器则通常用send函数来向客户程序发送应答。该函数的第一个参数...