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
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:
>
> ---
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