[Squeak-fr] osc
Markus Gaelli
gaelli at emergent.de
Sam 2 Avr 16:12:31 CEST 2005
On Apr 2, 2005, at 16:03, nicob wrote:
> well, when i used this:
>>>>> aSocket := (Socket udpCreateIfFail: [self halt]) setPort: 7010.
>>>>>
>>>>> aProcess:=
>>>>> [
>>>>> [dataStream _ RWBinaryOrTextStream on: (String new: 1024).
>>>>> buf _ String new: 4000.
>>>>> anArray:=aSocket receiveUDPDataInto: buf.
>>>>> sizeOfBuf := anArray first.
>>>>> 1 to: sizeOfBuf do: [:ii | dataStream nextPut: (buf at: ii)].
>>>>> dataStream reset.
>>>>> sizeOfBuf >0 ifTrue: [Transcript show: (dataStream contents)
>>>>> asString;cr]] repeat] fork.
>>>>
>
> i have result in the transcript, but when i use (OSCServer
> listenOnPort: yourPort) inspect, i got nothing
> but messageQueue is not clear for me (that's surelly the problem...)
Ok, when I said no user interface, I meant it: I forgot to create even
an accessor for it...sorry.
So add a method:
next
^messageQueue next
to OSCServer (on the instance side) and inspect the result of
self next
in the bottom pane of the inspector on the instance of OSCServer, again
after you sent sth.
You should receive an array with the values of the first message sent
on not yet fetched.
Hope this helps.
Cheers,
Markus
>
> will contiue to try...
> thanks
> Le 2 avr. 05, à 15:42, Markus Gaelli a écrit :
>
>> What happens when you
>> do
>> - (OSCServer listenOnPort: yourPort) inspect
>>
>> and then send its instance-variable messageQueue the message next and
>> inspect the result (certainly after you send some message to the
>> machine from PD whatever) ?
>>
>> I have no time for GUI building right now, sorry.
>>
>> Cheers,
>>
>> Markus
>>
>> p.s. Sorry to write here in English, but I am really a bit stressed..
>> ;-)
>>
>> On Apr 2, 2005, at 14:03, nicob wrote:
>>
>>> hello everybody
>>>
>>> est-ce quelqu'un a essaye les classes osc de markus gaelli
>>> http://map1.squeakfoundation.org/sm/package/61f807be-83a3-4944-bfa1
>>> -686ddac7153c/autoversion/3
>>>
>>> je n'arrive pas a faire fonctionner le serveur osc (recevoir des
>>> donnees dans squeak)
>>>
>>> quelqu'un pourrait-il m'aider...
>>>
>>> merci
>>> nicolas
>>>
>>>
>>> _______________________________________________
>>> Squeak-fr mailing list
>>> Squeak-fr at lists.squeakfoundation.org
>>> http://lists.squeakfoundation.org/listinfo/squeak-fr
>>
>> _______________________________________________
>> Squeak-fr mailing list
>> Squeak-fr at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/listinfo/squeak-fr
>
>
> _______________________________________________
> Squeak-fr mailing list
> Squeak-fr at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/squeak-fr
>
Plus d'informations sur la liste de diffusion Squeak-fr