Author Topic: Network Driver Source.  (Read 1252 times)

Paul_Sharrock

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
Network Driver Source.
« on: August 27, 2013, 03:44:24 pm »
Hi
Posting to see if anyone has a driver source for a TCP connection driver, that I can use as a starting point for making some changes.

Paul

bpwwer

  • Full Member
  • ***
  • Posts: 220
    • View Profile
Re: Network Driver Source.
« Reply #1 on: August 27, 2013, 05:55:51 pm »
Hi
Posting to see if anyone has a driver source for a TCP connection driver, that I can use as a starting point for making some changes.

Paul

Maybe, or at least I may be able to provide something to get you started.  Any more details on what you're trying to do?  Are you trying to connect to something that has a TCP server, a REST interface, a HTTP interface?

Paul_Sharrock

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
Re: Network Driver Source.
« Reply #2 on: August 27, 2013, 10:11:26 pm »
Its basically a telnet server, so a TCP connection on port 23.
Trying to read the current WAN connectivity status on my ZyXEL USG100 Plus firewall.


My C++ isn't good enough to start it all off.
I believe I need code to make the connection, and code to call a procedure when data is received.
I can't use a delimited response, so need to read data from a buffer.

I'll be able to analyse the data once in a buffer, update ELVE variables and create events.
I had emailed John to see if I could get a copy of the network driver source as this would be ideal.

Paul

bpwwer

  • Full Member
  • ***
  • Posts: 220
    • View Profile
Re: Network Driver Source.
« Reply #3 on: August 28, 2013, 06:35:58 am »
Paul,

I do have a driver that does something like that so I'll see if I can strip out all the stuff that doesn't help and send you something to get you started.

Bob

bpwwer

  • Full Member
  • ***
  • Posts: 220
    • View Profile
Re: Network Driver Source.
« Reply #4 on: August 28, 2013, 10:40:00 pm »
Paul,

I've attached a sample project that might help.  I haven't tried to load this in visual studio so it might have some issues.

Bob