Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
AnswerRe: Trouble binding with TCP to same local endpoint Pin
Richard MacCutchan1-Feb-15 5:22
mveRichard MacCutchan1-Feb-15 5:22 
GeneralRe: Trouble binding with TCP to same local endpoint Pin
Mc_Topaz1-Feb-15 5:27
Mc_Topaz1-Feb-15 5:27 
GeneralRe: Trouble binding with TCP to same local endpoint Pin
Richard MacCutchan1-Feb-15 6:05
mveRichard MacCutchan1-Feb-15 6:05 
GeneralRe: Trouble binding with TCP to same local endpoint Pin
Mc_Topaz1-Feb-15 6:43
Mc_Topaz1-Feb-15 6:43 
GeneralRe: Trouble binding with TCP to same local endpoint Pin
OriginalGriff1-Feb-15 7:43
mveOriginalGriff1-Feb-15 7:43 
GeneralRe: Trouble binding with TCP to same local endpoint Pin
OriginalGriff1-Feb-15 5:38
mveOriginalGriff1-Feb-15 5:38 
GeneralRe: Trouble binding with TCP to same local endpoint Pin
Richard MacCutchan1-Feb-15 6:05
mveRichard MacCutchan1-Feb-15 6:05 
NewsRe: Trouble binding with TCP to same local endpoint Pin
Mc_Topaz1-Feb-15 6:39
Mc_Topaz1-Feb-15 6:39 
Ok!

I see to be needed to explain why I need this.

On the computer running the TCP-client there are several network cards. One specific network card is connected to a LAN. On that LAN there are a bunch of M-Bus gateways (IP-devices). All M-Bus gateway have a bunch of M-Bus meters connected to itself using a kind of serial interface.

The programming running the TCP-client must request all M-Bus meters separately.
To request a specific M-Bus meter is done with providing the meter's unique address in the application layer.

So the TCP-client sends the request to 255.255.255.255:10001. The gateways are configured to listen on port 10001 and send the request further to the M-Bus meters.

That M-Bus meter that correspond to the actual unique address will replay back to it's master.

The M-Bus gateway now only need to send back the replay to the TCP client. In the gateway's configuration there is possible to specify what port the client will receive data on.

So I thought by specifying port 20001 in the gateways and binding to 20001 on the client this should work.

I didn't use the broadcast IP-address in my example because I wanted to keep the example simple.

modified 1-Feb-15 12:55pm.

AnswerRe: Trouble binding with TCP to same local endpoint Pin
Pete O'Hanlon2-Feb-15 6:31
mvePete O'Hanlon2-Feb-15 6:31 
GeneralRe: Trouble binding with TCP to same local endpoint Pin
Mc_Topaz2-Feb-15 19:57
Mc_Topaz2-Feb-15 19:57 
GeneralRe: Trouble binding with TCP to same local endpoint Pin
Pete O'Hanlon2-Feb-15 23:18
mvePete O'Hanlon2-Feb-15 23:18 
GeneralRe: Trouble binding with TCP to same local endpoint Pin
Mc_Topaz2-Feb-15 23:43
Mc_Topaz2-Feb-15 23:43 
AnswerRe: Trouble binding with TCP to same local endpoint Pin
DelphiCoder5-Feb-15 20:12
DelphiCoder5-Feb-15 20:12 
GeneralRe: Trouble binding with TCP to same local endpoint Pin
Mc_Topaz8-Feb-15 8:00
Mc_Topaz8-Feb-15 8:00 
GeneralRe: Trouble binding with TCP to same local endpoint Pin
DelphiCoder11-Feb-15 5:22
DelphiCoder11-Feb-15 5:22 
QuestionConversion of Text Box Hindi Value to Unicode to store in database in hindi Pin
Member 1080107431-Jan-15 21:04
Member 1080107431-Jan-15 21:04 
AnswerRe: Conversion of Text Box Hindi Value to Unicode to store in database in hindi Pin
Afzaal Ahmad Zeeshan31-Jan-15 21:44
professionalAfzaal Ahmad Zeeshan31-Jan-15 21:44 
Questiondatatable method to return no value Pin
User 1138061131-Jan-15 8:06
User 1138061131-Jan-15 8:06 
GeneralRe: datatable method to return no value Pin
PIEBALDconsult31-Jan-15 8:41
mvePIEBALDconsult31-Jan-15 8:41 
GeneralRe: datatable method to return no value Pin
User 1138061131-Jan-15 8:52
User 1138061131-Jan-15 8:52 
AnswerRe: datatable method to return no value Pin
Mycroft Holmes31-Jan-15 21:03
professionalMycroft Holmes31-Jan-15 21:03 
AnswerRe: datatable method to return no value Pin
F-ES Sitecore2-Feb-15 6:31
professionalF-ES Sitecore2-Feb-15 6:31 
QuestionC# SendKeys + - ~ signs? Pin
Linus Agren31-Jan-15 7:38
Linus Agren31-Jan-15 7:38 
AnswerRe: C# SendKeys + - ~ signs? Pin
LLLLGGGG31-Jan-15 12:37
LLLLGGGG31-Jan-15 12:37 
GeneralRe: C# SendKeys + - ~ signs? Pin
Linus Agren1-Feb-15 5:59
Linus Agren1-Feb-15 5:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.