Lisp HUG Maillist Archive

Is there any udp code for reference?

Hi,

I need some help. Does any body know about how to realize udp 
communication with LispWorks? Is there any code example for reference?

I would like to realize udp communication, but the info in the manual is 
limited and I can not find example code with LispWorks.

Does any body know any info about this?

Thank you very much for your help.

Sincerely,

Xu He


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Re: Is there any udp code for reference?

Hi,

You can install  portable library usocket via quicklisp and follow this
guide:

https://gist.github.com/shortsightedsid/a760e0d83a9557aaffcc

he.xu@foxmail.com writes:

> Hi,
>
> I need some help. Does any body know about how to realize udp communication with
> LispWorks? Is there any code example for reference?
>
> I would like to realize udp communication, but the info in the manual is limited
> and I can not find example code with LispWorks.
>
> Does any body know any info about this?
>
> Thank you very much for your help.
>
> Sincerely,
>
> Xu He
>
>
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html
>

-- 
Br,
/Alexey

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Re: Is there any udp code for reference?

Hi, no, not me.

BR
/Alexey

On Sat, Jul 8, 2017 at 1:18 AM, Chun Tian (binghe) <binghe.lisp@gmail.com> wrote:
Hi,

Are you the author of these guide documents? Can I use these materials to create an official "usocket user's guide"?

Regards,

Chun Tian

> Il giorno 26 mag 2017, alle ore 08:19, Alexey Veretennikov <txm.fourier@gmail.com> ha scritto:
>
> Hi,
>
> You can install  portable library usocket via quicklisp and follow this
> guide:
>
> https://gist.github.com/shortsightedsid/a760e0d83a9557aaffcc
>
> he.xu@foxmail.com writes:
>
>> Hi,
>>
>> I need some help. Does any body know about how to realize udp communication with
>> LispWorks? Is there any code example for reference?
>>
>> I would like to realize udp communication, but the info in the manual is limited
>> and I can not find example code with LispWorks.
>>
>> Does any body know any info about this?
>>
>> Thank you very much for your help.
>>
>> Sincerely,
>>
>> Xu He
>>
>>
>> _______________________________________________
>> Lisp Hug - the mailing list for LispWorks users
>> lisp-hug@lispworks.com
>> http://www.lispworks.com/support/lisp-hug.html
>>
>
> --
> Br,
> /Alexey
>
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html


Re: Is there any udp code for reference?

Unable to parse email body. Email id is 14400

Re: Is there any udp code for reference?

何旭:
Are you looking to send udp multicast?

Unfortunately I don't have access to the code anymore, but I've done that a couple of times at my previous company to communicate with some specialized devices on the LAN.
It's the same code you'd use to set up an ordinary UDP socket.

HOWEVER: The main problem is setting membership, which is not supported by usocket. I believe LispWorks does have support for it, but my memory is hazy and my searching isn't returning any results, so I may be mistaken.
Either way, what I resorted to doing (with SBCL) was to get the native socket handle and call setsockop on it myself. Really not recommended, but I saw no other way around it, unfortunately.
I don't know what you'd do with LispWorks other than poke around with double colons to find the native handle.

Once you set the membership you can call usocket:socket-receive and be on your merry way.

Now, if you're interested in broadcast that's a different issue, and those are supported by usocket and LispWorks directly.

Hopefully this is more helpful than harmful, since I don't condone accessing private package symbols, much less those representing non-lisp objects



On Mon, Jul 10, 2017 at 8:56 PM 何旭 <he.xu@foxmail.com> wrote:
Hi, Camille,

Thank you for your information. I have referenced the code in LispWorks, but I did not find any code for group cast. This is my situation:

A PC send udp data to a group IP, and I want to capture the data from the group IP.

I tried some codes. For sending and receiving directly, the "usocket" works, but I did not find any code or guide for group cast.

Thank you very much.

Xu He


------------------ Original ------------------
From:  "Camille Troillard";<ct@wildora..com>;
Date:  Mon, Jul 10, 2017 05:17 PM
To:  "何旭"<he.xu@foxmail.com>;
Cc:  "lisp-hug"<lisp-hug@lispworks.com>;
Subject:  Re: Is there any udp code for reference?

Hi Xu,


LispWorks 7.0 has support for UDP and TCP networking via the asynchronous interface.

See http://www.lispworks.com/documentation/lw70/LW/html/lw-186.htm#pgfId-911492


Best,
Cam


On 26 May 2017, at 03:25, he.xu@foxmail.com wrote:

Hi,

I need some help. Does any body know about how to realize udp communication with LispWorks? Is there any code example for reference?

I would like to realize udp communication, but the info in the manual is limited and I can not find example code with LispWorks.

Does any body know any info about this?

Thank you very much for your help.

Sincerely,

Xu He


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Re: Is there any udp code for reference?

Unable to parse email body. Email id is 14403

Updated at: 2020-12-10 08:31 UTC