Main Page Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members File Members Related Pages

# Socket.h File Reference

More...

`#include <winsock.h>`

Go to the source code of this file.

## Namespaces
namespace | wkgl
## Defines
#define | UINT unsigned int
#define | SFLAG unsigned short
#define | SERROR_NOERROR 0
| Returned when there is no error.
#define | SERROR_CONNECT -2
| Returned when the socket failed to connect.
#define | SERROR_HOST -3
| Returned when the host address is invalid.
#define | SERROR_NOCREATE -4
| Returned when the socket failed to create.
#define | SERROR_NOCLOSE -5
| Returned when the socket fails to close.
#define | SERROR_TYPE -6
| Returned when the address type is unknown.
#define | SERROR_SEND -7
| Returned when send fails.
#define | SERROR_RECV -8
| Returned when recv fails.
#define | SERROR_CLOSED -1
| Returned when if you attempt an operation when the socket is closed.
#define | STYPE_IP 1
| The type of address is number dot formated, e.g.
#define | STYPE_HOSTNAME 2
| The type of address is a host name, e.g.

## Detailed Description

## Define Documentation

#define SERROR_CLOSED -1

| Returned when if you attempt an operation when the socket is closed.

#define SERROR_CONNECT -2

| Returned when the socket failed to connect.

#define SERROR_HOST -3

| Returned when the host address is invalid.

#define SERROR_NOCLOSE -5

| Returned when the socket fails to close.

#define SERROR_NOCREATE -4

| Returned when the socket failed to create.

#define SERROR_NOERROR 0

| Returned when there is no error.

#define SERROR_RECV -8

| Returned when recv fails.

#define SERROR_SEND -7

| Returned when send fails.

#define SERROR_TYPE -6

| Returned when the address type is unknown.

#define SFLAG unsigned short

#define STYPE_HOSTNAME 2

| The type of address is a host name, e.g. "www.yahoo.com"

#define STYPE_IP 1

| The type of address is number dot formated, e.g. "111.256.2.13"

#define UINT unsigned int