Re: Socket with g++
> if (bind(socket_descriptor, (struct sockaddr *) &sa, sizeof(sa)) < 0)
> // the error message reports to this line:
> if((socket_descriptor=accept(socket_descriptor, &isa, &i)) < 0){
You have to use the same cast as in bind() -
if((socket_descriptor=accept(socket_descriptor,
(struct sockaddr*)&isa,&i)) < 0){
Alex Y.
--
_
_( )_
( (o___ +-------------------------------------------+
| _ 7 | Alexander Yukhimets |
\ (") | http://pages.nyu.edu/~aqy6633/ |
/ \ \ +-------------------------------------------+
Reply to: