This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: UNIX-Style sockets with gnu-win32
- To: "gnu-win32 at cygnus dot com" <gnu-win32 at cygnus dot com>, "'interrupt reQuest'" <irq at bc1 dot com>
- Subject: RE: UNIX-Style sockets with gnu-win32
- From: Sergey Okhapkin <sos at prospect dot com dot ru>
- Date: Wed, 19 Mar 1997 16:24:55 +0300
- Encoding: 22 TEXT
interrupt reQuest wrote:
> Well, what I have done is used a test server i wrote in unix with
> gcc... it works fine in unix, the socket binds, listens and accepts
> connections... i have compiled it with gnuwin32, and proceeded the
> accept, bind etc... with cygwin32_... it compiles, but the socket
> will
> not accept and it is not bound.. here is an attatchment of the code
> i
> used... if you have any simple working code as an example, id
> appreciate
> it, as i need all the help i can get :P
>
> server_address.sin_port = 1234;
You should write server_address.sin_port = htons(1234);.
--
Sergey Okhapkin
Moscow, Russia
Looking for a job.
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".