Process Hacker
tcp.c File Reference
#include <phdk.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <unistd.h>
#include "tcp.h"

Go to the source code of this file.

Functions

int growl_tcp_parse_hostname (const char *const server, int default_port, struct sockaddr_in *const sockaddr)
 
void growl_tcp_write_raw (SOCKET sock, const unsigned char *data, const int data_length)
 
void growl_tcp_write (SOCKET sock, const char *const format,...)
 
char * growl_tcp_read (SOCKET sock)
 
SOCKET growl_tcp_open (const char *server)
 
void growl_tcp_close (SOCKET sock)
 
int growl_tcp_datagram (const char *server, const unsigned char *data, const int data_length)
 

Function Documentation

void growl_tcp_close ( SOCKET  sock)

Definition at line 118 of file tcp.c.

int growl_tcp_datagram ( const char *  server,
const unsigned char *  data,
const int  data_length 
)

Definition at line 156 of file tcp.c.

SOCKET growl_tcp_open ( const char *  server)

Definition at line 83 of file tcp.c.

int growl_tcp_parse_hostname ( const char *const  server,
int  default_port,
struct sockaddr_in *const  sockaddr 
)

Definition at line 126 of file tcp.c.

char* growl_tcp_read ( SOCKET  sock)

Definition at line 55 of file tcp.c.

void growl_tcp_write ( SOCKET  sock,
const char *const  format,
  ... 
)

Definition at line 26 of file tcp.c.

void growl_tcp_write_raw ( SOCKET  sock,
const unsigned char *  data,
const int  data_length 
)

Definition at line 21 of file tcp.c.