public TcpCommObj() : base() { TrHandler = TransportHandler.TCP; tcpClient = new TcpClient(); // to do: add some default params? :S communicationParams = null; }
public override CommunicationObject CreateNew(CommunicationParameters commPar) { CommunicationObject retVal = new TcpCommObj(commPar); try { } catch (Exception) { throw; } return(retVal); }
public TcpCommObj(CommunicationParameters commPar) : base() { //if (commPar.HostPort == 20000) //{ // IPAddress ipAddress = IPAddress.Parse("192.168.0.103"); // IPEndPoint ipLocalEndPoint = new IPEndPoint(ipAddress, 20000); // tcpClient = new TcpClient(ipLocalEndPoint); //} //else //{ tcpClient = new TcpClient(); // } TrHandler = TransportHandler.TCP; communicationParams = commPar; }
public abstract CommunicationObject CreateNew(CommunicationParameters commPar);
public override CommunicationObject CreateNew(CommunicationParameters commPar) { throw new NotImplementedException(); }
public TcpCommObj(CommunicationParameters commPar) : base() { TrHandler = TransportHandler.TCP; tcpClient = new TcpClient(); communicationParams = commPar; }