Lines Matching refs:Socket
34 import java.net.Socket;
74 public Socket createSocket(InetAddress address, int port)
76 return new Socket(address, port);
117 public Socket createSocket(InetAddress address, int port,
120 return new Socket(address, port, myAddress, 0);
122 return new Socket(address, port);
126 * Creates a new Socket, binds it to myAddress:myPort and connects it to
136 * @return a new Socket, bound on myAddress:myPort and connected to
138 * @throws IOException if binding or connecting the socket fail for a reason
139 * (exception relayed from the correspoonding Socket methods)
141 public Socket createSocket(InetAddress address, int port,
146 return new Socket(address, port, myAddress, myPort);
150 Socket sock = new Socket();
156 return new Socket(address, port);