Added receive buffer to the socket

This commit is contained in:
Jonathan Leibiusky
2010-08-05 00:35:06 -03:00
parent 3af260f904
commit 01da80627d

View File

@@ -58,6 +58,7 @@ public class Connection {
public void connect() throws UnknownHostException, IOException {
if (!connected) {
socket = new Socket(host, port);
socket.setReceiveBufferSize(256);
connected = socket.isConnected();
outputStream = new DataOutputStream(socket.getOutputStream());
inputStream = new DataInputStream(new BufferedInputStream(socket