NAME
src/io/win32.c - Win32 Socket utility functions
DESCRIPTION
This file implements OS-specific Socket functions for Win32 platforms.
References
Win32 System Programming, 2nd Edition.
Functions
PMC *Parrot_io_socket_win32
Uses INTVAL Parrot_io_connect_win32
Connects INTVAL Parrot_io_send_win32
Send the message INTVAL Parrot_io_recv_win32
Receives a message in INTVAL Parrot_io_bind_win32
Binds INTVAL Parrot_io_listen_win32
Listen for new connections.
This is only applicable to PMC *Parrot_io_accept_win32
Accept a new connection and return a newly created STRING *Parrot_io_sockaddr_in
socket()
to create a socket with the specified address family,
socket type and protocol number.
*io
's socket to address *r
.
*s
to *io
's connected socket.
**s
from *io
's connected socket.
*io
's socket to the local address and port specified by *l
.
STREAM
or SEQ
sockets.
Socket
PMC.
Parrot_io_sockaddr_in()
is not part of the layer and so must be extern
.XXX: We can probably just write our own routines (htons()
,
inet_aton()
,
etc.) and take this out of platform specific compilationSEE ALSO
src/io/win32.c, src/io/unix_socket.c, src/io/io.c, src/io/io_private.h.