M
Manfred Eckschlager
Hi,
In Linux C++ there was an easy way to build a stream form a socket
like:
int sockFd = socket(AF_INET,SOCK_STREAM,0);
filebuf *netBuf = new filebuf( sockFd );
-and then
iostream *netStream = new iostream(filebuf);
But the new stream headers in VC.net 2003 dont support attach(int fd)
and filebuf(int) anymore.
Is there another short msvc like way to attach a stream to a socket?
thx, cheers
Manfred
In Linux C++ there was an easy way to build a stream form a socket
like:
int sockFd = socket(AF_INET,SOCK_STREAM,0);
filebuf *netBuf = new filebuf( sockFd );
-and then
iostream *netStream = new iostream(filebuf);
But the new stream headers in VC.net 2003 dont support attach(int fd)
and filebuf(int) anymore.
Is there another short msvc like way to attach a stream to a socket?
thx, cheers
Manfred