DotMSN |

# P2PMessageSession.ListenForDirectConnection Method

Setups a P2PDirectProcessor to listen for incoming connections. After a connection has been established the P2PDirectProcessor will become the main MessageProcessor to send messages.

[Visual Basic]
Public Function ListenForDirectConnection( _
ByVal host As IPAddress, _
ByVal port As Integer _
) As IMessageProcessor
[C#]
public IMessageProcessor ListenForDirectConnection(
IPAddress host,
int port
);

#### Parameters

host
port

#### Return Value

#### See Also

P2PMessageSession Class | XihSolutions.DotMSN.DataTransfer Namespace