`
no791no
  • 浏览: 19014 次
社区版块
存档分类
最新评论
文章列表

Socket基础

Socket基础 2010年04月02日   Socket基础                                                                                                                 1.Socket简介     Socket是TCP/IP网络的API,可以用它来开发网络应用程序,Socket数据传输是一种特殊的I/O,Socket也是一种文件描述符     2.Socket的建立     int socket(int domain, int type, int protocol) ...
一个类似ifconfig功能的程序代码--C语言(ZZ) 2010年07月30日    001 #include   002 #include   003 #include   004 #include   005 #include   006 #include   007 #include   008 #include   009   010 int info_list(int all);   011   012 int get_interface_info(char *interface_name);   013 int set_interface(char *int ...
tcp简单实现C/S模式程序,测试成功 2010年03月25日   server:   #include   #include   #pragma comment(lib,"ws2_32")   main()   {   WSADATA wsaData;   SOCKET ListeningSocket;   SOCKET NewConnection;   SOCKADDR_IN ServerAddr;   SOCKADDR_IN ClientAddr;   int port=5150;   int ClientAddrLen =sizeof(ServerAddr); ...
简单的C#Socket编程 2009年06月23日   using System;   using System.Net;   using System.Net.Sockets;   using System.IO ;   public class Echoserver   {   //entry point of main method.   public static void Main()   {   //TcpListener is listening on the given port   Int32 port = 1234;   //IPAddress is connetct ip ...
用C#做远程监控程序 2009年12月05日   最近在做的C/S程序要加入远程监控的功能,于是去搜索怎么用C#来做这个功能,然后看了一些资料。最后有了一点点思路,远程监控其实就是总结出来一个大概的流程:   首先,实时的将被监控端的屏幕截图并发送到监控端。   然后,把本地的鼠标和键盘事件的值传到远程,然后再远程模拟出来。   有了想法那就开始做吧,先做第一步   一、屏幕截图并发送到服务器端   先要让客户端连接到服务器端,用的是TCP连接          程序代码   socket = new TcpClient(serveraddress, serverport);   ns = c ...
Global site tag (gtag.js) - Google Analytics