资源简介
socket心跳包
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Threading;
namespace ConsoleApplication2
{
class Program
{
public static TcpListener tcpListener;
public static int port = 9070;
public static IPAddress ipAddress = IPAddress.Parse(“127.0.0.1“);
public static void Start()
{
tcpListener = new TcpListener(ipAddress port);
tcpListener.Start();//开始监听IPEndPort
Console.WriteLine(“begin listen port{0}“port);
while (true)
{
byte[] buffer = new byte[100];
Socket newClient = tcpListener.AcceptSocket();
newClient.Receive(buffer);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-12-24 14:40 socket心跳包\
目录 0 2012-12-24 14:40 socket心跳包\ConsoleApplication2\
目录 0 2012-12-24 14:40 socket心跳包\ConsoleApplication2\ConsoleApplication2\
文件 899 2012-12-21 16:22 socket心跳包\ConsoleApplication2\ConsoleApplication2.sln
文件 21504 2012-12-21 17:24 socket心跳包\ConsoleApplication2\ConsoleApplication2.suo
目录 0 2012-12-24 14:40 socket心跳包\ConsoleApplication2\ConsoleApplication2\bin\
目录 0 2012-12-24 14:40 socket心跳包\ConsoleApplication2\ConsoleApplication2\bin\Debug\
文件 6144 2012-12-21 17:04 socket心跳包\ConsoleApplication2\ConsoleApplication2\bin\Debug\ConsoleApplication2.exe
文件 15872 2012-12-21 17:04 socket心跳包\ConsoleApplication2\ConsoleApplication2\bin\Debug\ConsoleApplication2.pdb
文件 11600 2012-12-21 17:08 socket心跳包\ConsoleApplication2\ConsoleApplication2\bin\Debug\ConsoleApplication2.vshost.exe
文件 490 2010-03-17 22:39 socket心跳包\ConsoleApplication2\ConsoleApplication2\bin\Debug\ConsoleApplication2.vshost.exe.manifest
文件 2459 2012-12-21 16:22 socket心跳包\ConsoleApplication2\ConsoleApplication2\ConsoleApplication2.csproj
目录 0 2012-12-24 14:40 socket心跳包\ConsoleApplication2\ConsoleApplication2\obj\
目录 0 2012-12-24 14:40 socket心跳包\ConsoleApplication2\ConsoleApplication2\obj\x86\
目录 0 2012-12-24 14:40 socket心跳包\ConsoleApplication2\ConsoleApplication2\obj\x86\Debug\
文件 629 2012-12-21 17:08 socket心跳包\ConsoleApplication2\ConsoleApplication2\obj\x86\Debug\ConsoleApplication2.csproj.FileListAbsolute.txt
文件 6144 2012-12-21 17:04 socket心跳包\ConsoleApplication2\ConsoleApplication2\obj\x86\Debug\ConsoleApplication2.exe
文件 15872 2012-12-21 17:04 socket心跳包\ConsoleApplication2\ConsoleApplication2\obj\x86\Debug\ConsoleApplication2.pdb
文件 5881 2012-12-21 17:04 socket心跳包\ConsoleApplication2\ConsoleApplication2\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
目录 0 2012-12-24 14:40 socket心跳包\ConsoleApplication2\ConsoleApplication2\obj\x86\Debug\TempPE\
文件 2318 2012-12-21 17:04 socket心跳包\ConsoleApplication2\ConsoleApplication2\Program.cs
目录 0 2012-12-24 14:40 socket心跳包\ConsoleApplication2\ConsoleApplication2\Properties\
文件 1394 2012-12-21 16:22 socket心跳包\ConsoleApplication2\ConsoleApplication2\Properties\AssemblyInfo.cs
目录 0 2012-12-24 14:39 socket心跳包\WindowsFormsApplication3\
目录 0 2012-12-24 14:39 socket心跳包\WindowsFormsApplication3\WindowsFormsApplication3\
文件 914 2012-12-20 08:49 socket心跳包\WindowsFormsApplication3\WindowsFormsApplication3.sln
文件 31744 2012-12-21 17:24 socket心跳包\WindowsFormsApplication3\WindowsFormsApplication3.suo
目录 0 2012-12-24 14:39 socket心跳包\WindowsFormsApplication3\WindowsFormsApplication3\bin\
目录 0 2012-12-24 14:39 socket心跳包\WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\
文件 11264 2012-12-21 16:50 socket心跳包\WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\WindowsFormsApplication3.exe
文件 30208 2012-12-21 16:50 socket心跳包\WindowsFormsApplication3\WindowsFormsApplication3\bin\Debug\WindowsFormsApplication3.pdb
............此处省略28个文件信息
相关资源
- C#联通网络宽带测试 拨号
- C#百度指数抓取方法(2012年版本已失
- C# 隐藏某个磁盘分区
- wince引脚控制程序
- C# 读取并编辑window系统的右键菜单
- C#自定义屏保(不断滚动的文字)
- C#winform打印指定区域 -控件拖动 -设置
- C#使用Hook进行改键
- 提供C#调用系统API函数弹出或收起光驱
- 通过C#自带的头文件(类)获取Windo
- C#获取电脑CPU以及内存使用率
- Syndication实现读取、创建、订阅、更新
- 利用uu云打码平台的lib实现的c#打码平
- tf-idf一种计算方法
- C# pop3 邮件接收程序
- C# 邮件群发示例 源码下载18952
- httpclient source code by csharp
- 动态抓取IPC#实现
- NServiceKit.Redis 基础操作
- XXTEA算法的C#实现和JS实现,可以互相
- C# 飞行棋 游戏源码(面向对象入门)
- Socke传输 (wince6.0系统)
- UDP Messenger 1.0.unitypackage
- asp.net 网页静态化组件(shipingx-Stati
- SocketAsyncEventArgs完成断开编程
- 基于WinPcap的C# ARP欺骗软件().rar
- C#网络应用编程 矩阵并行计算练习
- 猜数小游戏WCF网络编程技术(附服务
- 《C#版Ftp软件源码》
- 基于com串口的文件发送和接收
评论
共有 条评论