ID the MBED processor on the network if you have more than one. View MBED name on DHCP of your Router - Example \"MBED PE\" Change your ID in Core / host.h

Embed: (wiki syntax)

« Back to documentation index

TCPSocket.h File Reference

TCPSocket.h File Reference

TCP Socket header file. More...

Go to the source code of this file.

Data Structures

class  TCPSocket
 This is a simple TCP Socket class. More...

Enumerations

enum  TCPSocketErr { ,
  TCPSOCKET_SETUP, TCPSOCKET_TIMEOUT, TCPSOCKET_IF, TCPSOCKET_MEM,
  TCPSOCKET_INUSE, TCPSOCKET_EMPTY, TCPSOCKET_RST, TCPSOCKET_OK = 0 ,
  TCPSOCKET_SETUP, TCPSOCKET_TIMEOUT, TCPSOCKET_IF, TCPSOCKET_MEM,
  TCPSOCKET_INUSE, TCPSOCKET_EMPTY, TCPSOCKET_RST, TCPSOCKET_OK = 0
}
 

TCP Socket error codes.

More...
enum  TCPSocketEvent {
  TCPSOCKET_CONNECTED, TCPSOCKET_ACCEPT, TCPSOCKET_READABLE, TCPSOCKET_WRITEABLE,
  TCPSOCKET_CONTIMEOUT, TCPSOCKET_CONRST, TCPSOCKET_CONABRT, TCPSOCKET_ERROR,
  TCPSOCKET_DISCONNECTED, TCPSOCKET_CONNECTED, TCPSOCKET_ACCEPT, TCPSOCKET_READABLE,
  TCPSOCKET_WRITEABLE, TCPSOCKET_CONTIMEOUT, TCPSOCKET_CONRST, TCPSOCKET_CONABRT,
  TCPSOCKET_ERROR, TCPSOCKET_DISCONNECTED
}
 

TCP Socket Events.

More...

Detailed Description

TCP Socket header file.

Definition in file LPC2368/api/TCPSocket.h.


Enumeration Type Documentation

TCP Socket error codes.

Enumerator:
TCPSOCKET_SETUP 

TCPSocket not properly configured.

TCPSOCKET_TIMEOUT 

Connection timed out.

TCPSOCKET_IF 

Interface has problems, does not exist or is not initialized.

TCPSOCKET_MEM 

Not enough mem.

TCPSOCKET_INUSE 

Interface / Port is in use.

TCPSOCKET_EMPTY 

Connections queue is empty.

TCPSOCKET_RST 

Connection was reset by remote host.

TCPSOCKET_OK 

Success.

TCPSOCKET_SETUP 

TCPSocket not properly configured.

TCPSOCKET_TIMEOUT 

Connection timed out.

TCPSOCKET_IF 

Interface has problems, does not exist or is not initialized.

TCPSOCKET_MEM 

Not enough mem.

TCPSOCKET_INUSE 

Interface / Port is in use.

TCPSOCKET_EMPTY 

Connections queue is empty.

TCPSOCKET_RST 

Connection was reset by remote host.

TCPSOCKET_OK 

Success.

Definition at line 36 of file LPC2368/api/TCPSocket.h.

TCP Socket Events.

Enumerator:
TCPSOCKET_CONNECTED 

Connected to host.

TCPSOCKET_ACCEPT 

Client is connected, must call accept() to get a new Socket.

TCPSOCKET_READABLE 

Data in buf.

TCPSOCKET_WRITEABLE 

Can write data to buf.

TCPSOCKET_CONTIMEOUT 

Connection timed out.

TCPSOCKET_CONRST 

Connection was reset by remote host.

TCPSOCKET_CONABRT 

Connection was aborted.

TCPSOCKET_ERROR 

Unknown error.

TCPSOCKET_DISCONNECTED 

Disconnected.

TCPSOCKET_CONNECTED 

Connected to host.

TCPSOCKET_ACCEPT 

Client is connected, must call accept() to get a new Socket.

TCPSOCKET_READABLE 

Data in buf.

TCPSOCKET_WRITEABLE 

Can write data to buf.

TCPSOCKET_CONTIMEOUT 

Connection timed out.

TCPSOCKET_CONRST 

Connection was reset by remote host.

TCPSOCKET_CONABRT 

Connection was aborted.

TCPSOCKET_ERROR 

Unknown error.

TCPSOCKET_DISCONNECTED 

Disconnected.

Definition at line 51 of file LPC2368/api/TCPSocket.h.