Class IrcClientConnection
Manages a single IRC client TCP connection.
public sealed class IrcClientConnection : IAsyncDisposable
- Inheritance
-
IrcClientConnection
- Implements
- Inherited Members
Constructors
IrcClientConnection(TcpClient, Stream)
public IrcClientConnection(TcpClient tcpClient, Stream stream)
Parameters
tcpClientTcpClientstreamStream
Properties
AwayMessage
public string? AwayMessage { get; set; }
Property Value
CapNegotiating
public bool CapNegotiating { get; set; }
Property Value
ConnectionId
public string ConnectionId { get; }
Property Value
Hostmask
public string Hostmask { get; }
Property Value
IsAuthenticated
public bool IsAuthenticated { get; set; }
Property Value
IsRegistered
public bool IsRegistered { get; set; }
Property Value
IsSasl
public bool IsSasl { get; set; }
Property Value
Nickname
public string? Nickname { get; set; }
Property Value
Password
public string? Password { get; set; }
Property Value
RealName
public string? RealName { get; set; }
Property Value
UserId
public Guid? UserId { get; set; }
Property Value
- Guid?
Username
public string? Username { get; set; }
Property Value
Methods
DisposeAsync()
public ValueTask DisposeAsync()
Returns
- ValueTask
GetJoinedChannels()
public List<string> GetJoinedChannels()
Returns
- List<string>
IsInChannel(string)
public bool IsInChannel(string channel)
Parameters
channelstring
Returns
JoinChannel(string)
public void JoinChannel(string channel)
Parameters
channelstring
LeaveChannel(string)
public void LeaveChannel(string channel)
Parameters
channelstring
ReadLineAsync(CancellationToken)
public Task<string?> ReadLineAsync(CancellationToken ct)
Parameters
ctCancellationToken
Returns
- Task<string>
SendAsync(string)
public Task SendAsync(string line)
Parameters
linestring
Returns
- Task
SendNumericAsync(string, string, string)
public Task SendNumericAsync(string serverName, string numeric, string text)
Parameters
Returns
- Task
SendNumericAsync(string, string, string, string)
public Task SendNumericAsync(string serverName, string numeric, string target, string text)
Parameters
Returns
- Task