/*
 * $Source: $
 * $Revision: $
 * $Date: $
 * $State: $
 * $Author: $
 *
 *
 * $Log: $
 *
 */

/*
 *
 * net_stuff.h: Interface definition to network stuff.
 *
 */

#include <mactcpcommontypes.h>
#include <tcppb.h>
#include <udppb.h>

typedef StreamPtr stream;

#define STREAM_SIZE 4096

int tcp_open_stream(ip_addr dest_ip, ip_port dest_port, stream *sp);
int tcp_close_stream(stream s);
int tcp_send_data(stream s, char *addr, int len);
int tcp_get_data(stream s, char *addr, int max_len, int *real_lenp);
int resolve_name(const char *in_name, char *cname, ip_addr *in_addrp);

