socket_type is one of INET or UNIX */
int socket_open_tcp_server(socket_manager*, int port, const char* listen_ip );
-int socket_open_unix_server(socket_manager* mgr, char* path);
+int socket_open_unix_server(socket_manager* mgr, const char* path);
int socket_open_udp_server( socket_manager* mgr, int port, const char* listen_ip );
returns 0 on success. -1 on failure. */
int socket_open_unix_client(socket_manager*, const char* sock_path);
-int socket_open_udp_client( socket_manager* mgr, int port, char* dest_addr);
+int socket_open_udp_client( socket_manager* mgr, int port, const char* dest_addr);
/* sends the given data to the given socket. returns 0 on success, -1 otherwise */
int socket_send(int sock_fd, const char* data);
return sock_fd;
}
-int socket_open_unix_server(socket_manager* mgr, char* path) {
+int socket_open_unix_server(socket_manager* mgr, const char* path) {
if(mgr == NULL || path == NULL) return -1;
osrfLogDebug( OSRF_LOG_MARK, "opening unix socket at %s", path);
int socket_open_udp_client(
- socket_manager* mgr, int port, char* dest_addr) {
+ socket_manager* mgr, int port, const char* dest_addr) {
int sockfd;
struct sockaddr_in client_addr, server_addr;