public SimpleNetwork_Client(protocolFunction protAnalyseFunction, int iBufferlength, string network_AKey, IPAddress ip, short port, AddressFamily familyType, SocketType socketType, ProtocolType protocolType) { this.protAnalyseFunction = protAnalyseFunction; this.Network_AKey = network_AKey; endpoint = new socketEndpointCommunication(iBufferlength, ip, port, familyType, socketType, protocolType); endpointCommunicationIsDeclared = true; }
public networkServer(protocolFunction protAnalyseFunction, string network_AKey, IPAddress ip, short port, AddressFamily familyType, SocketType socketType, ProtocolType protocolType) { this.network_AKey = network_AKey; this.protAnalyseFunction = protAnalyseFunction; serverEndPoint = new IPEndPoint(IPAddress.Any, port); serverSocket = new Socket(familyType, socketType, protocolType); serverSocket.Blocking = false; }
public SimpleNetworkClient(protocolFunction protAnalyseFunction, string network_AKey, string ip, short port, short bufferSize, short waitingTimeSeconds) { this.network_AKey = network_AKey; socket = new TcpSocketClient(); this.ip = ip; this.port = port; buffer = new byte[bufferSize]; this.waitingTimeSeconds = waitingTimeSeconds; }
public void changeProtocolFunction(protocolFunction protAnalyseFunction) { this.protAnalyseFunction = protAnalyseFunction; }
public SimpleNetwork_Client(protocolFunction protAnalyseFunction, string network_AKey) { this.protAnalyseFunction = protAnalyseFunction; this.Network_AKey = network_AKey; }
//Constructor public networkServer(protocolFunction protAnalyseFunction, string network_AKey, int ApplicationID) { this.network_AKey = network_AKey; this.protAnalyseFunction = protAnalyseFunction; this.ApplicationID = ApplicationID; }
//Constructor public networkServer(protocolFunction protAnalyseFunction, string network_AKey) { this.network_AKey = network_AKey; this.protAnalyseFunction = protAnalyseFunction; }
//Functions public void SetProtocolFunction(protocolFunction protAnalyseFunction) { this.protAnalyseFunction = protAnalyseFunction; }