Delphi Socket Demo】的更多相关文章

Delphi Socket Demo 转自  http://www.anqn.com/dev/delphi/2010-01-07/a09122531-1.shtml   自己对中间有点修改,下面是代码 服务端部分 unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs,ScktComp, StdCtrls, ComCtrls; con…
Delphi Socket Architecture - Felix John COLIBRI. abstract : The architecture of the ScktComp socket CLASSes key words : Sockets, WinSock, Windows Socket, ScktComp, socket UML class diagram, socket file transfer, tClientSocket, tServerSocket, HTTP ser…
http://cxhblog.blog.sohu.com/41930676.html 一.Socket通信: Delphi在ScktComp单元中对WinSock进行了封装,该单元提供了TAbstractSocket.TClientSocket.TClientWinSocket.TCustomSocket.TCustomWinSocket.TCustomServerSocket .TServerClientThread.TServerWinSocket.  TServerClientWinSoc…
不是第一次接触socket编程了,但以前都是看别人的依葫芦画瓢,也不知道具体的原理. 新的项目,有了新的开始,同时也需要有新的认识. Delphi 中带有两套TCP Socket组件: Indy Socket组件(IdTCPClient和IdTCPServer)和Delphi原生的TCP Socket组件(ClientSocket和ServerSocket), 分别是阻塞式和非阻塞式的方式: 还有一套开源的非阻塞式的组件ICS(Internet Component Suite) [网友说:不是特…
CommMonitor8.0 SDK DLL 版本,此版本是直接调用DLL. Delphi调用定义: constCommMOnitor8x = ‘CommMOnitor8x.dll’; typeTOnMonitorL = procedure(seq: DWORD; //序号dt: DWORD; //时间ctrl: DWORD; //控制码PID: DWORD; //进程IDcomNum: PAnsiChar; //串口号size: DWORD; //数据大小vtASC: PAnsiChar //…
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/socket.h> #include <unistd.h> #include <netinet/in.h> #include <arpa/inet.h> #if 0 #define UDP #else #define TCP #endif int sockfd; char* IP…
//**********************************************************************************//说明: 阻塞线程下为什么不触发OnRead和OnWrite事件//作者: licwing          时间: 2001-5-18//Email: rurality@21cn.com//*********************************************************************…
一.服务端-server.c #include <stdio.h> #include <sys/socket.h> #include <arpa/inet.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <netinet/in.h> #define MAXPENDING 5 #define BUFFSIZE 32 void Di…
socket()系统调用,带有三个参数: 1.参数domain指明通信域,如PF_UNIX(unix域),PF_INET(IPv4), PF_INET6(IPv6)等 2.type指明通信类型,最常用的如SOCK_STREAM(面向连接可靠方式, 比如TCP).SOCK_DGRAM(非面向连接的非可靠方式,比如UDP)等. 3.参数protocol指定需要使用的协议.虽然可以对同一个协议 家族(protocol family)(或者说通信域(domain))指定不同的协议 参数,但是通常只有一个…
http://blog.csdn.net/lailai186/article/details/8788710?utm_source=tuicool TClientSocket和TServerSocket的数据通知使用了Windwos下的消息通知机制,造成它们只适合针对窗口的WinForm程序,因为可以得到窗口的Handle句柄,用来postmessage或者sendmessage,但对于Dll这样的不存在窗口的工程就不适应了,我做了测试: 在DLL工程中引入TClientSocket,设置Hos…