Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 17-05-2016, 13:05   #1
Registered User

Join Date: Apr 2016
Posts: 19
TCP Stream in Plugin?

Are there any plugins that implement a TCP stream that I can look at as an example? I am trying to integrate a sensor with a plugin and need to look at raw data.
__________________
THEMuffinMan7 is offline   Reply With Quote
Old 17-05-2016, 13:11   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: TCP Stream in Plugin?

Look at the radar plugins, no others implement network streams of their own.

Pavel


Sent from my iPhone using Cruisers Sailing Forum
__________________
nohal is online now   Reply With Quote
Old 17-05-2016, 14:47   #3
Registered User

Join Date: Apr 2016
Posts: 19
Re: TCP Stream in Plugin?

Thanks! I looked at gradar_pi and moving the #includes for winsock2.h and WS2tcpip.h from the header file to the .cpp file like they do solved all my problems. Easy peasy. Not sure I understand why this fixed it, but I'm guessing the opencpn core links somehow with the plugin.h file and winsock2.h / WS2tcpip.h were getting included twice, which is what it seemed from the errors but couldn't figure out how.
__________________
THEMuffinMan7 is offline   Reply With Quote
Reply

Tags
plug

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
is it possible to allow OpenCPN to connect to AIS NMEA streams over TCP/IP? smartpilot OpenCPN 28 02-04-2014 14:17
GPS and TCP datastream jm2 OpenCPN 4 30-01-2013 10:08
Can't rcv NMEA instument data (TCP) for dashbord gerardvdg OpenCPN 5 09-01-2013 04:22
OpenCPN - NMEA Data from TCP Input framen OpenCPN 11 12-10-2012 13:19
TCP Free download faster now Bob Norson The Library 0 09-07-2006 00:36



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 05:38.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.