[grpc-io] Re: gRPC binding the socket to a particular interface or device (Something like SO_BINDTODEVICE)

2020-08-25 Thread Fazil Manzoor
Facing same issue on python grpc client and server

On Tuesday, March 3, 2020 at 2:24:07 PM UTC+5:30 abhiarora wrote:

> Hello,
> Any possible solution or any hack to achieve the same thing?
>
>
> On Tuesday, February 25, 2020 at 11:29:45 AM UTC+5:30, Abhi Arora wrote:
>
>> I have a Linux Embedded Machine with gRPC cross-compiled for it. I am 
>> looking to create multiple instances of gRPC each bind to a particular 
>> interface or device. Linux POSIX socket provides SO_BINDTODEVICE option but 
>> I am not sure if gRPC has any application layer method or function to 
>> achieve it. I tried other forums but couldn't find something useful.
>>
>> Is there any workaround to achieve the same thing?
>>
>> Please help me.
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/659dfcf4-c3ea-442c-adb3-cf3a61fdf4b6n%40googlegroups.com.


[grpc-io] Re: gRPC binding the socket to a particular interface or device (Something like SO_BINDTODEVICE)

2020-03-03 Thread Abhi Arora
Hello,
Any possible solution or any hack to achieve the same thing?

On Tuesday, February 25, 2020 at 11:29:45 AM UTC+5:30, Abhi Arora wrote:
>
> I have a Linux Embedded Machine with gRPC cross-compiled for it. I am 
> looking to create multiple instances of gRPC each bind to a particular 
> interface or device. Linux POSIX socket provides SO_BINDTODEVICE option but 
> I am not sure if gRPC has any application layer method or function to 
> achieve it. I tried other forums but couldn't find something useful.
>
> Is there any workaround to achieve the same thing?
>
> Please help me.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/8ff9fc31-c371-42d2-a6ea-22996bb1181f%40googlegroups.com.


[grpc-io] Re: gRPC binding the socket to a particular interface or device (Something like SO_BINDTODEVICE)

2020-02-27 Thread Abhi Arora
Okay. So we don't have options to set "SO_BINDTODEVICE " or bind to a 
particular IP in C++ for gRPC Client? Both are not available? How about 
gRPC Python Client? We can think to move to gRPC python client.

On Thursday, February 27, 2020 at 12:09:56 AM UTC+5:30, yas...@google.com 
wrote:
>
> gRPC C++ does not have any API to allow the client to bind to a specific 
> IP address at the moment.
>
> On Wednesday, February 26, 2020 at 1:45:15 AM UTC-8 engr.ab...@gmail.com 
> wrote:
>
>> My application communicates with gRPC server. Is there any way for gRPC 
>> client to bind to a particular interface or device? Or can I bind to 
>> particular IP? Will it work? Is there any way?
>>
>> Linux POSIX socket provides SO_BINDTODEVICE option but I am not sure if 
>> gRPC has any application layer method or function to achieve it. I tried 
>> other forums but couldn't find something useful.
>>
>> Is there any workaround to achieve the same thing?
>>
>> On Tuesday, February 25, 2020 at 11:29:45 AM UTC+5:30, Abhi Arora wrote:
>>
>>> I have a Linux Embedded Machine with gRPC cross-compiled for it. I am 
>>> looking to create multiple instances of gRPC each bind to a particular 
>>> interface or device. Linux POSIX socket provides SO_BINDTODEVICE option but 
>>> I am not sure if gRPC has any application layer method or function to 
>>> achieve it. I tried other forums but couldn't find something useful.
>>>
>>> Is there any workaround to achieve the same thing?
>>>
>>> Please help me.
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/f4c0c0f8-3c5c-49a9-aed4-84ab2fa6b3b3%40googlegroups.com.


[grpc-io] Re: gRPC binding the socket to a particular interface or device (Something like SO_BINDTODEVICE)

2020-02-26 Thread 'yas...@google.com' via grpc.io
gRPC C++ does not have any API to allow the client to bind to a specific IP 
address at the moment.

On Wednesday, February 26, 2020 at 1:45:15 AM UTC-8 engr.ab...@gmail.com 
wrote:

> My application communicates with gRPC server. Is there any way for gRPC 
> client to bind to a particular interface or device? Or can I bind to 
> particular IP? Will it work? Is there any way?
>
> Linux POSIX socket provides SO_BINDTODEVICE option but I am not sure if 
> gRPC has any application layer method or function to achieve it. I tried 
> other forums but couldn't find something useful.
>
> Is there any workaround to achieve the same thing?
>
> On Tuesday, February 25, 2020 at 11:29:45 AM UTC+5:30, Abhi Arora wrote:
>
>> I have a Linux Embedded Machine with gRPC cross-compiled for it. I am 
>> looking to create multiple instances of gRPC each bind to a particular 
>> interface or device. Linux POSIX socket provides SO_BINDTODEVICE option but 
>> I am not sure if gRPC has any application layer method or function to 
>> achieve it. I tried other forums but couldn't find something useful.
>>
>> Is there any workaround to achieve the same thing?
>>
>> Please help me.
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/96a58878-648a-4faa-9d6e-4481221346b4%40googlegroups.com.


[grpc-io] Re: gRPC binding the socket to a particular interface or device (Something like SO_BINDTODEVICE)

2020-02-26 Thread Abhi Arora
My application communicates with gRPC server. Is there any way for gRPC 
client to bind to a particular interface or device? Or can I bind to 
particular IP? Will it work? Is there any way?

Linux POSIX socket provides SO_BINDTODEVICE option but I am not sure if 
gRPC has any application layer method or function to achieve it. I tried 
other forums but couldn't find something useful.

Is there any workaround to achieve the same thing?

On Tuesday, February 25, 2020 at 11:29:45 AM UTC+5:30, Abhi Arora wrote:
>
> I have a Linux Embedded Machine with gRPC cross-compiled for it. I am 
> looking to create multiple instances of gRPC each bind to a particular 
> interface or device. Linux POSIX socket provides SO_BINDTODEVICE option but 
> I am not sure if gRPC has any application layer method or function to 
> achieve it. I tried other forums but couldn't find something useful.
>
> Is there any workaround to achieve the same thing?
>
> Please help me.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/b0a88947-56d6-4305-860e-99b8b52fde92%40googlegroups.com.


[grpc-io] Re: gRPC binding the socket to a particular interface or device (Something like SO_BINDTODEVICE)

2020-02-25 Thread Abhi Arora
Pardon but I forgot to mention my setup is a gRPC client and the code you 
shared belongs to server sample.

On Tuesday, February 25, 2020 at 11:29:45 AM UTC+5:30, Abhi Arora wrote:
>
> I have a Linux Embedded Machine with gRPC cross-compiled for it. I am 
> looking to create multiple instances of gRPC each bind to a particular 
> interface or device. Linux POSIX socket provides SO_BINDTODEVICE option but 
> I am not sure if gRPC has any application layer method or function to 
> achieve it. I tried other forums but couldn't find something useful.
>
> Is there any workaround to achieve the same thing?
>
> Please help me.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/f59f1327-d08b-40de-82d0-2536701a1355%40googlegroups.com.