C# 클래스 SocketClient, UnityHello

파일 보기 프로젝트 열기: woshihuo12/UnityHello 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
mLoggedIn bool

공개 메소드들

메소드 설명
OnRegister ( ) : void
OnRemove ( ) : void
SendConnect ( ) : void

发送连接请求

SendMessage ( ByteBuffer buffer ) : void

发送消息

SocketClient ( ) : UnityEngine

비공개 메소드들

메소드 설명
Close ( ) : void
ConnectServer ( string host, int port ) : void
OnConnect ( IAsyncResult asr ) : void
OnDisconnected ( DisType dis, string msg ) : void
OnRead ( IAsyncResult asr ) : void
OnReceive ( byte bytes, int length ) : void

接收到消息

OnReceivedMessage ( MemoryStream, ms ) : void

接收到消息

OnWrite ( IAsyncResult r ) : void

向链接写入数据流

PrintBytes ( ) : void
RemainingBytes ( ) : long

剩余的字节

SessionSend ( byte bytes ) : void

会话发送

WriteMessage ( byte message ) : void

메소드 상세

OnRegister() 공개 메소드

public OnRegister ( ) : void
리턴 void

OnRemove() 공개 메소드

public OnRemove ( ) : void
리턴 void

SendConnect() 공개 메소드

发送连接请求
public SendConnect ( ) : void
리턴 void

SendMessage() 공개 메소드

发送消息
public SendMessage ( ByteBuffer buffer ) : void
buffer ByteBuffer
리턴 void

SocketClient() 공개 메소드

public SocketClient ( ) : UnityEngine
리턴 UnityEngine

프로퍼티 상세

mLoggedIn 공개적으로 정적으로 프로퍼티

public static bool mLoggedIn
리턴 bool