Sybase ESP .NET SDK  5.0 ESD#1
NetEspUri Class Reference

List of all members.

Public Types

enum  NET_ESP_URI_T {
  NET_UNDEFINED_URI = 0, NET_SERVER_URI = 1, NET_WORKSPACE_URI, NET_PROJECT_URI,
  NET_STREAM_URI
}

Public Member Functions

 NetEspUri (ESP_SDK_NAMESPACE::EspUri *nEspUri)
ESP_SDK_NAMESPACE::EspUri * getEspUri ()
int32_t set_type (NET_ESP_URI_T type, NetEspError^ error)
int32_t set_uri (String^ uri, NetEspError^ error)
int32_t set_server (String^ server, NetEspError^ error)
int32_t add_manager (String^ host, int32_t port, NetEspError^ error)
int32_t add_manager (String^ manager, NetEspError^ error)
int32_t set_workspace (String^ workspace, NetEspError^ error)
int32_t set_project (String^ project, NetEspError^ error)
int32_t set_stream (String^ stream, NetEspError^ error)
ESP_SDK_NAMESPACE::NetEspUri::NET_ESP_URI_T get_type ()
String^ get_server (NetEspError^ error)
String^ get_workspace (NetEspError^ error)
String^ get_project (NetEspError^ error)
String^ get_stream (NetEspError^ error)
List< String^ >^ get_managers (NetEspError^ error)
String^ get_uri_string (NetEspError^ error)
int32_t set_ssl (int32_t ssl, NetEspError^ error)

Member Enumeration Documentation

Enumerator:
NET_UNDEFINED_URI 

Undefined URI

NET_SERVER_URI 

Server URI

NET_WORKSPACE_URI 

Workspace URI

NET_PROJECT_URI 

Project URI

NET_STREAM_URI 

Stream URI


Member Function Documentation

int32_t NetEspUri::add_manager ( String^  host,
int32_t  port,
NetEspError error 
)

Adds the connection details (host and port) for a manager. Returns 0 on success

int32_t NetEspUri::add_manager ( String^  manager,
NetEspError error 
)

Adds the connection details for a manager as a preformatted string "host:port". Returns 0 on success

int32_t NetEspUri::set_project ( String^  project,
NetEspError error 
)

Sets the name of the project component. Will overwrite existing name if any. Returns 0 on success

int32_t NetEspUri::set_server ( String^  server,
NetEspError error 
)

Sets the name of the server component. Will overwrite existing name if any. A server specification string consists of semicolon delimited manager specs (for example, host1:port1;host2:port2 ). Returns 0 on success

int32_t NetEspUri::set_stream ( String^  stream,
NetEspError error 
)

Sets the name of the stream component. Will overwrite existing name if any. Returns 0 on success

int32_t NetEspUri::set_workspace ( String^  workspace,
NetEspError error 
)

Sets the name of workspace component. Will overwrite existing name if any. Returns 0 on success.