C# 클래스 Fun.FunapiMulticastClient

파일 보기 프로젝트 열기: iFunFactory/demo-kgc-2015 1 사용 예제들

공개 메소드들

메소드 설명
FunapiMulticastClient ( FunapiNetwork network, FunEncoding encoding ) : UnityEngine
InChannel ( string channel_id ) : bool
JoinChannel ( string channel_id, ChannelReceiveHandler handler ) : bool
LeaveChannel ( string channel_id ) : bool
SendToChannel ( FunMulticastMessage mcast_msg ) : bool

The sender must fill in the mcast_msg. The "channel_id" field is mandatory. And mcas_msg must have join and leave flags set.

SendToChannel ( object json_msg ) : bool

The sender must fill in the mcast_msg. The "channel_id" field is mandatory. And mcas_msg must have join and leave flags set.

비공개 메소드들

메소드 설명
OnReceived ( string msg_type, object body ) : void

메소드 상세

FunapiMulticastClient() 공개 메소드

public FunapiMulticastClient ( FunapiNetwork network, FunEncoding encoding ) : UnityEngine
network FunapiNetwork
encoding FunEncoding
리턴 UnityEngine

InChannel() 공개 메소드

public InChannel ( string channel_id ) : bool
channel_id string
리턴 bool

JoinChannel() 공개 메소드

public JoinChannel ( string channel_id, ChannelReceiveHandler handler ) : bool
channel_id string
handler ChannelReceiveHandler
리턴 bool

LeaveChannel() 공개 메소드

public LeaveChannel ( string channel_id ) : bool
channel_id string
리턴 bool

SendToChannel() 공개 메소드

The sender must fill in the mcast_msg. The "channel_id" field is mandatory. And mcas_msg must have join and leave flags set.
public SendToChannel ( FunMulticastMessage mcast_msg ) : bool
mcast_msg FunMulticastMessage
리턴 bool

SendToChannel() 공개 메소드

The sender must fill in the mcast_msg. The "channel_id" field is mandatory. And mcas_msg must have join and leave flags set.
public SendToChannel ( object json_msg ) : bool
json_msg object
리턴 bool