473,385 Members | 1,973 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,385 software developers and data experts.

Where can I find a good C++ socket class/library?

Hi.

I've searched a lot on google, but no one seems to develop
a socket class for c++?
I've found a lot of classes that works only on Windows.
The thing is that I need a BSD socket library.
I tried socket++1.1, but i guess that is too old, since it doesen't
compile
on gcc-3.3

So, does any one knows where I can find a good class/library for
sockets, in c++?

Jul 23 '05 #1
7 2929
gr****@gmail.com wrote:
Hi.

I've searched a lot on google, but no one seems to develop
a socket class for c++?
I've found a lot of classes that works only on Windows.
The thing is that I need a BSD socket library.
I tried socket++1.1, but i guess that is too old, since it doesen't
compile
on gcc-3.3

So, does any one knows where I can find a good class/library for
sockets, in c++?


http://www.alhem.net/Sockets/index.html
Jul 23 '05 #2
gr****@gmail.com wrote:
Hi.

I've searched a lot on google, but no one seems to develop
a socket class for c++?
I've found a lot of classes that works only on Windows.
The thing is that I need a BSD socket library.
I tried socket++1.1, but i guess that is too old, since it doesen't
compile
on gcc-3.3

So, does any one knows where I can find a good class/library for
sockets, in c++?


I suggest netclass library. It's multiplatform socket, thread library.
http://netclass.sourceforge.net/
--
Gregor Razdrtic [Mufe]
mu**@poizen.org
Jul 23 '05 #3
Thanks.

I'll try both of them, and see which one suits my
needs.

Jul 23 '05 #4

<gr****@gmail.com> ha scritto nel messaggio
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi.

I've searched a lot on google, but no one seems to develop
a socket class for c++?
I've found a lot of classes that works only on Windows.
The thing is that I need a BSD socket library.
I tried socket++1.1, but i guess that is too old, since it doesen't
compile
on gcc-3.3

So, does any one knows where I can find a good class/library for
sockets, in c++?


http://sourceforge.net/projects/fedlibrary/
Jul 23 '05 #5

<gr****@gmail.com> wrote in message news:11**********************@f14g2000cwb.googlegr oups.com...
Hi.

I've searched a lot on google, but no one seems to develop
a socket class for c++?
I've found a lot of classes that works only on Windows.
The thing is that I need a BSD socket library.
I tried socket++1.1, but i guess that is too old, since it doesen't
compile
on gcc-3.3

So, does any one knows where I can find a good class/library for
sockets, in c++?


C++ Stream Compatible TCP/IP Sockets
http://sourceforge.net/projects/cpp-sockets/
--
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn
Jul 23 '05 #6
C++ Stream Compatible TCP/IP Sockets
http://sourceforge.net/projects/cpp-sockets/

Alex,

Have you tried to compile this on SUN? I get:
make
------------------
rm -f sockets.o
CC -I. -w -D__UNIX__ -DSCREEN_LOG=1 -DMILESTONE_LOG=1 -DTRACE_LOG=0 -c
sockets.cpp
"sockets.h", line 116: Error: TCPSocketWrapper::socket_type is not
accessible from TCPSocketWrapper::TCPAcceptedSocket.
"sockets.h", line 121: Error: TCPSocketWrapper::socket_type is not
accessible from TCPSocketWrapper::TCPAcceptedSocket.
"sockets.cpp", line 107: Error: TCPSocketWrapper::socket_type is not
accessible from TCPSocketWrapper::TCPAcceptedSocket.
"sockets.cpp", line 357: Error: INADDR_NONE is not defined.
4 Error(s) detected.
Jul 23 '05 #7

"Winbatch" <wi******@techie.com> wrote in message news:6V*********************@twister.nyc.rr.com...
C++ Stream Compatible TCP/IP Sockets
http://sourceforge.net/projects/cpp-sockets/

Alex,

Have you tried to compile this on SUN? I get:
make
------------------
rm -f sockets.o
CC -I. -w -D__UNIX__ -DSCREEN_LOG=1 -DMILESTONE_LOG=1 -DTRACE_LOG=0 -c
sockets.cpp
"sockets.h", line 116: Error: TCPSocketWrapper::socket_type is not
accessible from TCPSocketWrapper::TCPAcceptedSocket.
"sockets.h", line 121: Error: TCPSocketWrapper::socket_type is not
accessible from TCPSocketWrapper::TCPAcceptedSocket.
"sockets.cpp", line 107: Error: TCPSocketWrapper::socket_type is not
accessible from TCPSocketWrapper::TCPAcceptedSocket.
"sockets.cpp", line 357: Error: INADDR_NONE is not defined.
4 Error(s) detected.


Hi,

I have compile that with compiler GNU g++ 3.3.1 on Windows in Cygwin environment (UNIX-like OS).
There were no problems.
I didn't compile it on SUN.

Could you compile that with GNU g++?

Also please look on lines 100-106 in "sockets.h".

Which typedef is actually applied in your system?

--
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn


Jul 23 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: J. Dudgeon | last post by:
Hello, I've written a server that acts as a proxy between the PC and the mainframe worlds. This server service is writting in C# w/.NET 1.1. The service is TCP/IP based and makes heavy use of...
354
by: Montrose... | last post by:
After working in c# for a year, the only conclusion I can come to is that I wish I knew c. All I need is Linux, the gnu c compiler and I can do anything. Web services are just open sockets...
2
by: Ed Fair | last post by:
Hi, I am having a name collision between a library call and a class I've created. My class is called "socket", it abstracts a TCP socket. In my constructors for my class, I am calling the...
25
by: Tor Erik Sřnvisen | last post by:
Hi I need to browse the socket-module source-code. I believe it's contained in the file socketmodule.c, but I can't locate this file... Where should I look? regards tores
1
by: mirandacascade | last post by:
Version of python: 2.4 O/S: Win2K I will be writing some python scripts to do some client-side programming that involves socket.py. I expect that I will be making calls to the following...
6
by: Dica | last post by:
i've been asked to write an app making use of reports.vb class, but i can't seem to find it..
0
by: Daniel Sélen Secches | last post by:
I found a good class to do a simple FTP. Very good.... I'm posting it with the message, i hope it helps someone ============================================================== Imports...
4
by: John Pote | last post by:
Hi all, I want to use python on a server to access incoming TCP port accesses. So I need to use the socket interface which is new to me. To quote the Py Library Reference "7.2 socket --...
3
by: fniles | last post by:
I am using ThreadPool to call a sub in a class. The first time the ThreadPool is called, I created a socket in the thread. I can connect a client to the socket and send a message to the client (in...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.