>
> The constant +max-datagram-packet-size+ is defined in usocket.lisp, line 14:
>
> (defconstant +max-datagram-packet-size+ 65536)
>
> I didn't export the symbol +MAX-DATAGRAM-PACKET-SIZE+ because it's a constant
> and hard limit of UDP implementation. Users don't need to change it's value,
2010/1/13 Chun Tian (binghe)
> Hi, Elliott
>
> 在 2010-1-14,10:02, Elliott Slaughter 写道:
> >
> > [SOCKET-SEND]
> >
> > Syntax: SOCKET-SEND usocket buffer length &key host port
> >
> > SOCKET-SEND is used for sending packets through a UDP usocket, the
> "buffer" arguments usually need to be a vecto
Hi again,
在 2010-1-14,10:15, Elliott Slaughter 写道:
> One more request:
>
> Is there any way of having a timeout on socket-receive? Or at least have some
> way of checking whether there is any data waiting (so I don't have to block
> while waiting for packets to arrive)?
Yes, there're two ways
Hi, Elliott
在 2010-1-14,10:02, Elliott Slaughter 写道:
>
> It isn't clear to me how unconnected UDP sockets are to be used, since the
> host and port are unspecified. I would expect that most users would always
> want to use connected sockets.
To use a "unconnected" UDP socket, you can still us
One more request:
Is there any way of having a timeout on socket-receive? Or at least have
some way of checking whether there is any data waiting (so I don't have to
block while waiting for packets to arrive)?
Thanks.
On Wed, Jan 13, 2010 at 6:02 PM, Elliott Slaughter <
elliottslaugh...@gmail.co
On Thu, Jan 7, 2010 at 11:02 AM, Chun Tian (binghe)
wrote:
> Hi, usocket users
>
> I want to mention, the "experimental-udp" branch has been merged into
> usocket trunk.
>
> Changed API:
>
> [SOCKET-CONNECT]
>
> SOCKET-CONNECT now has a new keyword argument PROTOCOL with default :STREAM
> as tcp,