C# 클래스 PBCaGw.Services.TcpManager

Handles all the TCP/IP connections and stores the chains corresponding to it.
파일 보기 프로젝트 열기: ISISComputingGroup/EPICS-epicssharp

공개 메소드들

메소드 설명
DisposeAll ( ) : void
GetClientChain ( IPEndPoint endPoint ) : WorkerChain

Registers or retreive a client (MEDM) chain.

GetIocChain ( Gateway gateway, IPEndPoint endPoint ) : WorkerChain

Registers or retreive a server (IOC) chain.

SendClientPacket ( DataPacket packet ) : void

Sends a packet to a client connection

SendIocPacket ( Gateway gateway, DataPacket packet ) : void

Sends a packet to a server connection

비공개 메소드들

메소드 설명
BufferFlusher ( ) : void

Flushes the buffers every now and then

DisposeSocket ( Socket socket ) : void

Disposes a socket

DropClientConnection ( IPEndPoint iPEndPoint ) : void

Removes a client (request) chain. Could be triggered from a dispose of the TcpReceiver even in the IOC chain therefore we must check if the chain is indeed a client chain.

DropServerConnection ( WorkerChain chain ) : void

Removes an IOC (response) chain

RegisterClient ( IPEndPoint iPEndPoint, WorkerChain chain ) : void

Called by the TCP Listener when receiving a new connection. Stores a client (request) chain.

SocketConnect ( Socket socket, EndPoint endPoint, int connTimeout ) : bool
TcpManager ( ) : System

Creates the buffer dictionary

메소드 상세

DisposeAll() 공개 정적인 메소드

public static DisposeAll ( ) : void
리턴 void

GetClientChain() 공개 정적인 메소드

Registers or retreive a client (MEDM) chain.
public static GetClientChain ( IPEndPoint endPoint ) : WorkerChain
endPoint System.Net.IPEndPoint
리턴 PBCaGw.Workers.WorkerChain

GetIocChain() 공개 정적인 메소드

Registers or retreive a server (IOC) chain.
public static GetIocChain ( Gateway gateway, IPEndPoint endPoint ) : WorkerChain
gateway Gateway
endPoint System.Net.IPEndPoint
리턴 PBCaGw.Workers.WorkerChain

SendClientPacket() 공개 정적인 메소드

Sends a packet to a client connection
public static SendClientPacket ( DataPacket packet ) : void
packet DataPacket
리턴 void

SendIocPacket() 공개 정적인 메소드

Sends a packet to a server connection
public static SendIocPacket ( Gateway gateway, DataPacket packet ) : void
gateway Gateway
packet DataPacket
리턴 void