Beispiel #1
0
        public TcpServerSender(string serverIp, int serverPort, int sendBufferSize)
        {
            this.serverIp = serverIp;
            this.serverPort = serverPort;
            this.sendBufferSize = sendBufferSize;

            IPAddress serverAddr = IPAddress.Parse(serverIp);
            this.tcpListener = new TcpListener(serverAddr, serverPort);
            tcpSenderList = new TcpSenderList();
            this.Start();
            Open();
        }
Beispiel #2
0
        public TcpServerSender(string serverIp, int serverPort, int sendBufferSize)
        {
            this.serverIp       = serverIp;
            this.serverPort     = serverPort;
            this.sendBufferSize = sendBufferSize;

            IPAddress serverAddr = IPAddress.Parse(serverIp);

            this.tcpListener = new TcpListener(serverAddr, serverPort);
            tcpSenderList    = new TcpSenderList();
            this.Start();
            Open();
        }