473,378 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

UDP Client socket in Visual Studio c++ ver6.0

32
I have functioning UDP socket code written in C++ from a LINUX platform. Winsock.h or Winsock2.h

My task is to port it to Windows. Unfortunately the development environment I have is Visual Studio 6.0 has differing constructs than the gcc compiler world on LINUX. Internet searches provide me plenty of .net solutions but nothing really for VS6.0.

Can someone either direct me to a link that contains such info or provide a sample code snippet.

Thanks

-e
Sep 21 '15 #1
7 2482
weaknessforcats
9,208 Expert Mod 8TB
I am not an expert here but this looks like Visual Studio 6.0 could compile it: http://www.tenouk.com/Winsock/Winsock2example9.html
Sep 21 '15 #2
emp
32
I had already looked at this link. I put pertinent pieces of this code into my app. After several compile errors I found extra .h files that needed to be included and I got it to compile, albeit with 172 warnings, all associated with the socket header files. I'm far from testing it, but..... I'm not feeling comfortable having all those warnings. You can usually live with a couple, but 172 is excessive.
Sep 21 '15 #3
weaknessforcats
9,208 Expert Mod 8TB
What kind of warnings?

Are you using

Expand|Select|Wrap|Line Numbers
  1.  #define _CRT_SECURE_NO_WARNINGS 
?
Sep 21 '15 #4
emp
32
The warnings reference <vector> and <bytes> and a bunch of std:: things that must just be included in various .h files.
Sep 22 '15 #5
emp
32
Warning C4786 still persists, even with the addition of the suggested #define.
Sep 22 '15 #6
weaknessforcats
9,208 Expert Mod 8TB
C4786 is a warning that the label of your variable exceeds 255 characters and therefore cannot be used with the Visual Studio debugger. It doesn't mean anything is wring with the code. Labels bigger than 255 are common in the C++ STL.

You might try a release build and see if the warning goes away. If it does, it's just a debugger issue. In that case I would add

Expand|Select|Wrap|Line Numbers
  1. #pragma warning(disable: 4786)
at the beginning of the code or in a header that is included in all source files in the build.
Sep 22 '15 #7
emp
32
It does go away in the release build. So I will add the pragma. Thanks for the help
Sep 23 '15 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: JustSomeGuy | last post by:
I'm writing a socket class using unix flavor sockets. I'm developing on win2k with M$ visual studio 6.0. I have cygwin installed and would like to use its socket header files: #ifdef UNIX...
11
by: olle | last post by:
Hi everyone. I am an Access developer having worked with Access-dev. projects for many years on Sql server databases and Access. For the internet I have been using traditional asp. But now I have...
2
by: Laxmikant Rashinkar | last post by:
Hi, does anyone know if there is support for SSL sockets in visual studio 2005 beta 1? I dont mean the WebRequest / WebResponse classes. I am looking to do my own socket I/O using SSL sockets....
2
by: Wael_Bakr | last post by:
I have a dll written in visual basic.net, I need to run this dll on client's machine, so if i need to wrap it as an activex control to be downloaded on client's machine how can i do this using...
1
by: pratishsoma | last post by:
Hi, I'm developing WebServices client in Visual Studio 2005. The Web Service is developed in java, Axis. The Web Service has a function to return Soap Response and an Attachment (DIME or MIME...
12
by: hufaunder | last post by:
I often find myself in the situation where at a customers site I have to do some quick debugging or program changes. Obvioiusly, I do not want to install VS2005 on their system. Is there a ways to...
0
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
Last week I asked a question about connection to database from client machine (developer machine). There are two types of security setup for SQL Server database: Windows only and "SQL Server and...
1
by: DR | last post by:
What ports do i need to unblock on client and server (running msvsmon.exe) to debug remotely from my client box with visual studio 2005 pro? When I attach to remote process a connection shows up...
0
by: Ganesh Kamthe | last post by:
Hi, I have 2 computer conncted. I have set one as server & other as client. So my client pc is not responding for Visual studio 2008. But my server PC supports ot in good manner. So can use...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.