public NetworkSimulatorSocketContext CreateContext(EndPoint endpoint)
        {
            var socket = new NetworkSimulatorSocketContext();

            socket.Manager = this;

            return(socket);
        }
        public void ChangeContext(NetworkSimulatorSocketContext socket, EndPoint endpoint)
        {
            if (sockets.ContainsKey(endpoint))
            {
                throw new SocketException();
            }

            sockets.Add(endpoint, socket);
        }