Show / Hide Table of Contents

# Class ConnectionRequest

##### Inheritance

object
ConnectionRequest

###### Namespace: LiteNetLib

###### Assembly: LiteNetLib.dll

##### Syntax

    public class ConnectionRequest

### Fields

#### RemoteEndPoint

##### Declaration

    public readonly IPEndPoint RemoteEndPoint

##### Field Value

Type | Description
--- | ---
IPEndPoint |

### Properties

#### Data

##### Declaration

    public NetDataReader Data { get; }

##### Property Value

Type | Description
--- | ---
NetDataReader |

### Methods

#### Accept()

Accept connection and get new NetPeer as result

##### Declaration

    public NetPeer Accept()

##### Returns

Type | Description
--- | ---
NetPeer | Connected NetPeer

#### AcceptIfKey(string)

##### Declaration

    public NetPeer AcceptIfKey(string key)

##### Parameters

Type | Name | Description
--- | --- | ---
string | key |

##### Returns

Type | Description
--- | ---
NetPeer |

#### Reject()

##### Declaration

    public void Reject()

#### Reject(NetDataWriter)

##### Declaration

    public void Reject(NetDataWriter rejectData)

##### Parameters

Type | Name | Description
--- | --- | ---
NetDataWriter | rejectData |

#### Reject(byte[])

##### Declaration

    public void Reject(byte[] rejectData)

##### Parameters

Type | Name | Description
--- | --- | ---
byte[] | rejectData |

#### Reject(byte[], int, int)

##### Declaration

    public void Reject(byte[] rejectData, int start, int length)

##### Parameters

Type | Name | Description
--- | --- | ---
byte[] | rejectData |
int | start |
int | length |

#### Reject(byte[], int, int, bool)

##### Declaration

    public void Reject(byte[] rejectData, int start, int length, bool force)

##### Parameters

Type | Name | Description
--- | --- | ---
byte[] | rejectData |
int | start |
int | length |
bool | force |

#### RejectForce()

##### Declaration

    public void RejectForce()

#### RejectForce(NetDataWriter)

##### Declaration

    public void RejectForce(NetDataWriter rejectData)

##### Parameters

Type | Name | Description
--- | --- | ---
NetDataWriter | rejectData |

#### RejectForce(byte[])

##### Declaration

    public void RejectForce(byte[] rejectData)

##### Parameters

Type | Name | Description
--- | --- | ---
byte[] | rejectData |

#### RejectForce(byte[], int, int)

##### Declaration

    public void RejectForce(byte[] rejectData, int start, int length)

##### Parameters

Type | Name | Description
--- | --- | ---
byte[] | rejectData |
int | start |
int | length |