I donīt know, but I think your socket buffer may be very low, (default about
8192 bytes or so) so your socket will never send to net as much bytes as he
can.
You can try to increase to 128Kb or 1Mb with setsockopt( ) function. (In
fact it should be 2*(Bandwidth)*(ping time) to keep a full link)

Try something like this:
....
socket = socket( );

int level = IPPROTO_TCP;

#ifdef WIN32
 int retval = setsockopt((SOCKET)sock,SOL_SOCKET,SO_RCVBUF,(char
*)optval,optlen);
#else
 int retval = setsockopt(sock,level,SO_RCVBUF,(char *)optval,optlen);
#endif

Hope this helps

Pablo J. Royo

----- Original Message -----
From: "p b" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 9:57 AM
Subject: faster connexion


> Hi,
>
> I have made a connexion between 2 computers linked by a 100Mb net.
> I use BIO_s_connect and BIO_s_accept, but I can't transmit data faster
> than 100ko/s (Even without SSL)! How can I "boost" my connexion :-)
>
> Thanks!
>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to