By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,389 Members | 1,795 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,389 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
7 Replies


P: n/a
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

P: n/a
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

P: n/a
Thanks.

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

Jul 23 '05 #4

P: n/a

<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

P: n/a

<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

P: n/a
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

P: n/a

"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 discussion thread is closed

Replies have been disabled for this discussion.