C# 클래스 DataServer.DataServerBase

상속: Caliburn.Micro.PropertyChangedBase, IDataServer
파일 보기 프로젝트 열기: TNOCS/csTouch

공개 프로퍼티들

프로퍼티 타입 설명
client csImb

Private Properties

프로퍼티 타입 설명
CreateShadowServiceForSharedService PoiService
Imb_OnVariable void
InitImb void
JoinSharedService void
ListReset void
ProcessReceivedImbBusVariable void
ReceivedPrivateMessage void
ReceivedServiceNotificationOnImbBus void
SendData void
SendPrivateMessage void
SendServiceReset void
SendToImbBusSubscriptedToService void
ServicesCollectionChanged void

공개 메소드들

메소드 설명
AddLocalDataService ( string folder, Mode _mode, string file, string originFolder = "", bool autoStart = false ) : PoiService
AddLocalDataServices ( string folder, Mode myMode, string originFolder = "", bool autoStart = false ) : void
AddService ( Service s, Mode serviceMode ) : void

Add and init a service

DataServerBase ( ) : System
DeleteService ( PoiService s ) : void

delete a service

RemoveService ( Service s ) : void

Remove a service

SendEvent ( string title, string content ) : void
SendFile ( string imageId, byte image, Service service ) : void
SendPrivateMessage ( int pToImbHandle, PrivateMessage pm ) : void
SendPrivateMessage ( int server, PrivateMessageActions action, System.Guid serviceId ) : void
SendPrivateMessage ( int server, PrivateMessageActions action, System.Guid serviceId, string contentId, System.Guid ownerId ) : void
Start ( Mode startMode ) : void

Start server

Start ( string folder, Mode myMode, string originFolder, bool autoStart = false, bool addLocalServices = true ) : void
Stop ( ) : void

Stop server

Subscribe ( Service s ) : void
Subscribe ( Service s, Mode pMode ) : void

Subscribe to a service. a local file will be openened from file, otherwise a subscription request will be send

TriggerTapped ( TappedEventArgs tappedEventArgs ) : void
UnSubscribe ( Service s ) : void

unsubscribe from a service

비공개 메소드들

메소드 설명
CreateShadowServiceForSharedService ( string pSharedServiceName, System.Guid pSharedServiceGuid, int pImbHandleSharingService ) : PoiService

Imb_OnVariable ( TConnection aConnection, string aVarName, byte aVarValue, byte aPrevValue ) : void
InitImb ( ) : void

Initialize imb connection

JoinSharedService ( bool pServiceAlreadyExsisted, PoiService pSharedService ) : void
ListReset ( System.Guid serviceId, byte buffer, string channel ) : void

Received a complete content list from the server

ProcessReceivedImbBusVariable ( string pImbVariableName, string pImbVariableContent ) : void
ReceivedPrivateMessage ( TEventEntry aEvent, int aTick, int aBufferId, TByteBuffer aBuffer ) : void

received message on private channel

ReceivedServiceNotificationOnImbBus ( string pImbVariableName, string pImbVariableContent ) : void

IMB bus variable updated

SendData ( int receiver, Service service, string contentId, System.Guid ownerId, string channel ) : void

Send file (icon, image, audio) to a specific client

SendPrivateMessage ( int server, PrivateMessageActions action, System.Guid serviceId, string contentId, byte data, System.Guid ownerId, string channelName ) : void
SendServiceReset ( int sender, System.Guid serviceId, int priority ) : void

Send all content lists from a service to a client

SendToImbBusSubscriptedToService ( System.Guid pServiceId, int pImbClientHandle ) : void
ServicesCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

메소드 상세

AddLocalDataService() 공개 메소드

public AddLocalDataService ( string folder, Mode _mode, string file, string originFolder = "", bool autoStart = false ) : PoiService
folder string
_mode Mode
file string
originFolder string
autoStart bool
리턴 PoiService

AddLocalDataServices() 공개 메소드

public AddLocalDataServices ( string folder, Mode myMode, string originFolder = "", bool autoStart = false ) : void
folder string
myMode Mode
originFolder string
autoStart bool
리턴 void

AddService() 공개 메소드

Add and init a service
public AddService ( Service s, Mode serviceMode ) : void
s Service
serviceMode Mode
리턴 void

DataServerBase() 공개 메소드

public DataServerBase ( ) : System
리턴 System

DeleteService() 공개 메소드

delete a service
public DeleteService ( PoiService s ) : void
s PoiService
리턴 void

RemoveService() 공개 메소드

Remove a service
public RemoveService ( Service s ) : void
s Service
리턴 void

SendEvent() 공개 메소드

public SendEvent ( string title, string content ) : void
title string
content string
리턴 void

SendFile() 공개 메소드

public SendFile ( string imageId, byte image, Service service ) : void
imageId string
image byte
service Service
리턴 void

SendPrivateMessage() 공개 메소드

public SendPrivateMessage ( int pToImbHandle, PrivateMessage pm ) : void
pToImbHandle int
pm PrivateMessage
리턴 void

SendPrivateMessage() 공개 메소드

public SendPrivateMessage ( int server, PrivateMessageActions action, System.Guid serviceId ) : void
server int
action PrivateMessageActions
serviceId System.Guid
리턴 void

SendPrivateMessage() 공개 메소드

public SendPrivateMessage ( int server, PrivateMessageActions action, System.Guid serviceId, string contentId, System.Guid ownerId ) : void
server int
action PrivateMessageActions
serviceId System.Guid
contentId string
ownerId System.Guid
리턴 void

Start() 공개 메소드

Start server
public Start ( Mode startMode ) : void
startMode Mode
리턴 void

Start() 공개 메소드

public Start ( string folder, Mode myMode, string originFolder, bool autoStart = false, bool addLocalServices = true ) : void
folder string
myMode Mode
originFolder string
autoStart bool
addLocalServices bool
리턴 void

Stop() 공개 메소드

Stop server
public Stop ( ) : void
리턴 void

Subscribe() 공개 메소드

public Subscribe ( Service s ) : void
s Service
리턴 void

Subscribe() 공개 메소드

Subscribe to a service. a local file will be openened from file, otherwise a subscription request will be send
public Subscribe ( Service s, Mode pMode ) : void
s Service
pMode Mode
리턴 void

TriggerTapped() 공개 메소드

public TriggerTapped ( TappedEventArgs tappedEventArgs ) : void
tappedEventArgs TappedEventArgs
리턴 void

UnSubscribe() 공개 메소드

unsubscribe from a service
public UnSubscribe ( Service s ) : void
s Service
리턴 void

프로퍼티 상세

client 공개적으로 프로퍼티

public csImb client
리턴 csImb