[ENet-discuss] Stops sending after 4096bytes

Lee Salzman lsalzman1 at cox.net
Tue Dec 28 17:45:26 PST 2004


Sounds like you're just not flushing something somewhere. I couldn't
tell you more without seeing how you're using ENet.

Lee

On Tue, Dec 28, 2004 at 11:15:39AM -0600, Brian wrote:
> Hi,
> 
> I'm trying to implement enet in an application, but I can only send
> 4096 bytes of data (4096 empty packets, 64 x 64 byte packets etc) and
> then the server will eventually say the client disconnected (I assume
> timed out). I have been through the tutorial on the cubik site a dozen
> times and I can't find anything I'm missing. Because of the constant
> size, I'm sure its a buffer issue, but I just can't figure out where
> exactly the issue is.
> 
> Stepping through the client in the debugger,  the enet_host_flush
> function calls enet_protocol_send_outgoing_commands where host ->
> commandCount is set to 0 and never assigned another value so it hits
> the continue statement after checking if if (host -> commandCount ==
> 0).
> 
> Anyone know what could be the cause or speculate on things I might try
> to solve the problem?
> 
> Thanks in advance!
> Brian



More information about the ENet-discuss mailing list