Re: [Libevent-users] TCP client not calling writecb

2013-04-21 Thread Jan Danielsson
On 04/21/13 01:14, Nir Soffer wrote: [---] >> bev = bufferevent_socket_new(base, -1, BEV_OPT_CLOSE_ON_FREE); >> bufferevent_setcb(bev, readcb, writecb, eventcb, &ls); > > You don't need to register the writecb - use NULL Ah, I think I realized what my error in reasoning was. I was thinking o

Re: [Libevent-users] TCP client not calling writecb

2013-04-20 Thread Nir Soffer
On Apr 21, 2013, at 1:28 AM, Jan Danielsson wrote: > Hello, > > I have a server which waits for incoming connections, and I want the > client to connect to the server, and immediately send over a port > number. In the client's main() I do this: > > ---

[Libevent-users] TCP client not calling writecb

2013-04-20 Thread Jan Danielsson
Hello, I have a server which waits for incoming connections, and I want the client to connect to the server, and immediately send over a port number. In the client's main() I do this: (void)memset(&sin, 0, sizeof(sin)); sin.sin_fam