Home | History | Annotate | Download | only in socket

Lines Matching refs:Socket

16 package org.mockftpserver.core.socket;

20 import java.net.Socket;
25 * Socket returned by accept(), and the local port for the ServerSocket.
33 private Socket socket;
45 * Construct a new instance with specified local port and accept() socket.
47 * @param socket - the socket to be returned from accept(); if null, then accept() throws SocketTimeoutException.
50 public StubServerSocket(int localPort, Socket socket) throws IOException {
53 this.socket = socket;
65 * If a socket was specified on the constructor, then return that; otherwise, throw a SocketTimeoutException.
68 public Socket accept() throws IOException {
69 if (socket != null) {
70 return socket;