Methods for Connecting

A set of methods for connecting to LogReceiver
Easy if using the version of the fewest arguments

under using NetLog;, it can be used in the format Log.StartRemoteLogXXX,

If Port No. is omitted, it becomes 5656
If LimitTime is omitted, it becomes 300[msec]
If NeedStackTrace is omitted, it becomes true

LogSender.OnConnect format is a type of delegate as OnConnect(bool Success)
 


Methods Listing

public static bool StartRemoteLogEz(string iHost)

  • ■Parameters
    • string iHost
      • Designate IP addresses of PCs running LogReceiver
  • ■Return value
      • If connection succeeded, it returns true.

 

public static bool StartRemoteLogEz(string iHost, int iPort)

  • ■Parameters
    • string iHost
      • Designate IP addresses of PCs running LogReceiver
    • int iPort
      • Designate Port No. where LogReceiver is on stand-by
  • ■Return value
      • If connection succeeded, it returns true.

 

public static bool StartRemoteLogEz(string iHost, LogSender.OnConnect iOnConnect)

  • ■Parameters
    • string iHost
      • Designate IP addresses of PCs running LogReceiver
    • LogSender.OnConnect iOnConnec
      • Event handler for instances of successful connection
  • ■Return value
      • If connection succeeded, it returns true.

 

 
public static bool StartRemoteLogEz(string iHost, int iPort, LogSender.OnConnect iOnConnect)

  • ■Parameters
    • string iHost
      • Designate IP addresses of PCs running LogReceiver
    • int iPort
      • Designate Port No. where LogReceiver is on standby
    • LogSender.OnConnect iOnConnec
      • Event handler for times of successful connections
  • ■Return value
      • If connection succeeded, it returns true.

 

 
public static bool StartRemoteLog(string iHost, int iPort, int iLimitTime, bool iNeedStackTrace, LogSender.OnConnect iOnConnect)

  • ■Parameters
    • string iHost
      • Designate the IP address of the PC running LogReceiver
    • int iPort
      • Designate the Port No. where LogReceiver is on standby
    • int iLimitTime
      • Designate time-out period for connection
    • bool iNeedStackTrace
      • If stack trace is necessary, set to true
    • LogSender.OnConnect iOnConnec
      • Event handler for instances of successful connection
  • ■Return value
      • If connection succeeded, it returns true.