pyconstruct looks cool. i dont know if the classes are using the plain
berkely-ish code. i couldn't find anything in it that pointed to send()
recv(), & such. i found other stuff like SetSocketOpt() and so on like
this :

long CClientSocket::ConnectToServer(LPCTSTR serverAddr, UINT port)

{

        BOOL socketOption = TRUE;

        const int rcvBuffsize = 64 *1024;

        const int sendBuffsize = 64*1024;



        if ( !Create() )

                return ERR_SOCKET_CREATE;

        int intvalue = sizeof(int);

        if(!( SetSockOpt(SO_DONTROUTE,&socketOption,sizeof(BOOL),SOL_SOCKET)
&&

            SetSockOpt(SO_RCVBUF,&rcvBuffsize,sizeof(int),SOL_SOCKET) &&

            SetSockOpt(SO_SNDBUF,&sendBuffsize,sizeof(int),SOL_SOCKET) &&

            SetSockOpt(TCP_NODELAY,&socketOption,sizeof(BOOL),SOL_SOCKET) &&

            SetSockOpt(SO_KEEPALIVE,&socketOption,sizeof(BOOL),SOL_SOCKET)))

                return ERR_SOCKET_CREATE;


i looked around for some of these and found most references to UDP. I
guess its also a windows specific thing too. thanks for the tips
gents....

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to