Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nanomsg.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (s *Socket) Bind(address string) (*Endpoint, error) {
return &Endpoint{address, eid}, nil
}

// Add a remote endpoint to the socket.
// Connect adds a remote endpoint to the socket.
func (s *Socket) Connect(address string) (*Endpoint, error) {
cstr := C.CString(address)
defer C.free(unsafe.Pointer(cstr))
Expand All @@ -123,7 +123,7 @@ func (s *Socket) Connect(address string) (*Endpoint, error) {
return &Endpoint{address, eid}, nil
}

// Removes an endpoint from the socket. This call will return immediately,
// Shutdown removes an endpoint from the socket. This call will return immediately,
// however, the library will try to deliver any outstanding outbound messages
// to the endpoint for the time specified by the linger socket option.
func (s *Socket) Shutdown(endpoint *Endpoint) error {
Expand Down