static int mactcp_write_oob(Socket, char const*, int);
static void mactcp_set_private_ptr(Socket, void *);
static void *mactcp_get_private_ptr(Socket);
-static char *mactcp_socket_error(Socket);
+static const char *mactcp_socket_error(Socket);
static void mactcp_set_frozen(Socket, int);
static void mactcp_recv(Actual_Socket s, size_t len);
static TCPNotifyUPP mactcp_asr_upp;
Socket mactcp_new(SockAddr addr, int port, int privport, int oobinline,
- int nodelay, Plug plug)
+ int nodelay, int keepalive, Plug plug)
{
static struct socket_function_table fn_table = {
mactcp_plug,
ret->next->prev = &ret->next;
mactcp.socklist = ret;
+ sk_addr_free(addr); /* don't need this anymore */
+
return (Socket)ret;
}
Socket mactcp_newlistener(char *srcaddr, int port, Plug plug,
- int local_host_only)
+ int local_host_only, int address_family)
{
fatalbox("mactcp_newlistener");
}
}
-static char *mactcp_socket_error(Socket sock)
+static const char *mactcp_socket_error(Socket sock)
{
static char buf[64];
Actual_Socket s = (Actual_Socket) sock;