>If I add this to your main() I can send larger messages: > > int len; > socklen_t optlen = sizeof(len); > > ... > len = 4096; > if (setsockopt(c_socket, SOL_SOCKET, SO_SNDBUF, &len, optlen) == -1) > err(1, "setsockopt"); > if (getsockopt(c_socket, SOL_SOCKET, SO_SNDBUF, &len, &optlen) == -1) > err(1, "getsockopt"); > printf("len is %d\n", len); > >Note that you have to set the buffer size of the connected socket. > > -Otto
Thanks! It solved my problem. The first thing I looked was at the SNDBUF/RCVBUF sizes, but I guess I did something wrong .. Thanks, Daniel __________________________________________________ Fale com seus amigos de graga com o novo Yahoo! Messenger http://br.messenger.yahoo.com/