SCTC
the soundcloud.com terminal client
Functions
plain.h File Reference

Exported functions required for handling plain TCP/IP connections. More...

#include "network.h"
Include dependency graph for plain.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct network_connplain_connect (char *server, int port)
 Connect a plain TCP/IP socket to server:port. More...
 

Detailed Description

Exported functions required for handling plain TCP/IP connections.

Function Documentation

struct network_conn* plain_connect ( char *  server,
int  port 
)

Connect a plain TCP/IP socket to server:port.

Parameters
serverThe server to connect to, either an IP or a hostname.
portThe servers port ( $ 0 \le port \le 65536 $)
Returns
Pointer to a network_conn struct, or NULL in case of an error

Here is the call graph for this function:

Here is the caller graph for this function: