All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] about rfcomm tty channel listening
@ 2005-05-30 12:19 mike lee
  2005-05-30 16:39 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: mike lee @ 2005-05-30 12:19 UTC (permalink / raw)
  To: bluez-users

Dear all
    When i bind a rfcomm tty socket, Could i serve mulitple connections
at the same time? And how about rfcomm raw socket? if the answer is no,
that mean i need to open a new channel to listen.
    Also , could i connect the rfcomm channel in the same computer?

best regard
Mike,Lee


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] about rfcomm tty channel listening
  2005-05-30 12:19 [Bluez-users] about rfcomm tty channel listening mike lee
@ 2005-05-30 16:39 ` Marcel Holtmann
  2005-05-31  2:28   ` mike lee
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2005-05-30 16:39 UTC (permalink / raw)
  To: bluez-users

Hi,

>     When i bind a rfcomm tty socket, Could i serve mulitple connections
> at the same time? And how about rfcomm raw socket? if the answer is no,
> that mean i need to open a new channel to listen.
>     Also , could i connect the rfcomm channel in the same computer?

be more specific in what you are trying to do. I can't follow you.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] about rfcomm tty channel listening
  2005-05-30 16:39 ` Marcel Holtmann
@ 2005-05-31  2:28   ` mike lee
  2005-05-31  7:32     ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: mike lee @ 2005-05-31  2:28 UTC (permalink / raw)
  To: bluez-users

Marcel Holtmann wrote:

>Hi,
>
>  
>
>>    When i bind a rfcomm tty socket, Could i serve mulitple connections
>>at the same time? And how about rfcomm raw socket? if the answer is no,
>>that mean i need to open a new channel to listen.
>>    Also , could i connect the rfcomm channel in the same computer?
>>    
>>
>
>be more specific in what you are trying to do. I can't follow you.
>
>Regards
>
>Marcel
>  
>
    Sorry for my bad english, may be i describe more.
    I am now writing a server program to accept 2 rfcomm connections. I
found that it is not possible to accept 2 connections with same channel.
Why i ask this because, in tcp socket, a server create a socket with
e.g. 80 port. It can then accept multiple connections with the same port
number. The behavior is different between channel and socket.
    So, if i want to make multiple connections with rfcomm, i need to
bind, listen and accept in another rfcomm socket. Does this thinking
correct?

    I hope i can describe more clearly.

>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by Yahoo.
>Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
>Search APIs Find out how you can build Yahoo! directly into your own
>Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
>_______________________________________________
>Bluez-users mailing list
>Bluez-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>  
>


-- 
Software Engineer
Mike Lee
Avantwave limited
Tel: 852-29527125



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] about rfcomm tty channel listening
  2005-05-31  2:28   ` mike lee
@ 2005-05-31  7:32     ` Marcel Holtmann
  0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2005-05-31  7:32 UTC (permalink / raw)
  To: bluez-users

Hi,

> >>    When i bind a rfcomm tty socket, Could i serve mulitple connections
> >>at the same time? And how about rfcomm raw socket? if the answer is no,
> >>that mean i need to open a new channel to listen.
> >>    Also , could i connect the rfcomm channel in the same computer?
> >
> >be more specific in what you are trying to do. I can't follow you.
> >
>     Sorry for my bad english, may be i describe more.
>     I am now writing a server program to accept 2 rfcomm connections. I
> found that it is not possible to accept 2 connections with same channel.
> Why i ask this because, in tcp socket, a server create a socket with
> e.g. 80 port. It can then accept multiple connections with the same port
> number. The behavior is different between channel and socket.
>     So, if i want to make multiple connections with rfcomm, i need to
> bind, listen and accept in another rfcomm socket. Does this thinking
> correct?

this works if the two client connections are from different devices. If
they are coming from the same device then this won't work and you need a
second server on a different channel.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-05-31  7:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-30 12:19 [Bluez-users] about rfcomm tty channel listening mike lee
2005-05-30 16:39 ` Marcel Holtmann
2005-05-31  2:28   ` mike lee
2005-05-31  7:32     ` Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.