Permalink
Browse files

Changing buffer size to 8192 to match winsock standard

  • Loading branch information...
MattTuttle committed Feb 25, 2014
1 parent 58ae79c commit 8d773f191f2ba825c926c2383357c36dac011bd1
Showing with 7 additions and 5 deletions.
  1. +1 −1 hxnet/tcp/Client.hx
  2. +4 −2 hxnet/tcp/Server.hx
  3. +1 −1 hxnet/udp/Client.hx
  4. +1 −1 hxnet/udp/Server.hx
View
@@ -15,7 +15,7 @@ class Client implements hxnet.interfaces.Client
public function new()
{
buffer = Bytes.alloc(1024);
buffer = Bytes.alloc(8192);
}
public function connect(?hostname:String, port:Null<Int> = 12800)
View
@@ -16,10 +16,12 @@ class Server implements hxnet.interfaces.Server
public function new(factory:Factory, port:Int, ?hostname:String)
{
buffer = Bytes.alloc(1024);
buffer = Bytes.alloc(8192);
if (hostname == null) hostname = Host.localhost();
this.factory = factory;
this.host = (hostname == null ? Host.localhost() : hostname);
this.host = hostname;
this.port = port;
listener = new Socket();
View
@@ -15,7 +15,7 @@ class Client implements hxnet.interfaces.Client
public function new()
{
buffer = Bytes.alloc(1024);
buffer = Bytes.alloc(8192);
}
public function connect(?hostname:String, port:Null<Int> = 12800)
View
@@ -20,7 +20,7 @@ class Server implements hxnet.interfaces.Server
public function new(factory:Factory, port:Int, ?hostname:String)
{
connections = new Map<Address, ClientConnection>();
buffer = Bytes.alloc(1024);
buffer = Bytes.alloc(8192);
this.factory = factory;
var host = new Host(hostname == null ? Host.localhost() : hostname);

0 comments on commit 8d773f1

Please sign in to comment.