The GenericSock 구조
The GenericSock 구조
구현은 INetSock과 UnixSock이 지원하지 않는 추가 주소 패밀리와 소켓 타입에 접근하는 방법으로 GenericSock 구조를 제공할 수 있어요.
출처: 문서
본문
시놉시스 (Synopsis)
signature GENERIC_SOCK (* OPTIONAL *)
structure GenericSock :> GENERIC_SOCK (* OPTIONAL *)
인터페이스 (Interface)
val socket : Socket.AF.addr_family * Socket.SOCK.sock_type
-> ('af, 'sock_type) Socket.sock
val socketPair : Socket.AF.addr_family
* Socket.SOCK.sock_type
-> ('af, 'sock_type) Socket.sock
* ('af, 'sock_type) Socket.sock
val socket' : Socket.AF.addr_family
* Socket.SOCK.sock_type
* int -> ('af, 'sock_type) Socket.sock
val socketPair' : Socket.AF.addr_family
* Socket.SOCK.sock_type
* int
-> ('af, 'sock_type) Socket.sock
* ('af, 'sock_type) Socket.sock
설명 (Description)
socket (af, st)
af가 지정한 주소 패밀리와 st가 지정한 소켓 타입으로, 기본 프로토콜을 사용하는 소켓을 만들어요.
socketPair (af, st)
af가 지정한 주소 패밀리와 st가 지정한 소켓 타입으로, 기본 프로토콜을 사용하는 이름 없는 연결된 소켓 쌍을 만들어요.
socket' (af, st, i)
af가 지정한 주소 패밀리와 st가 지정한 소켓 타입, 프로토콜 번호 i로 소켓을 만들어요.
socketPair' (af, st, i)
af가 지정한 주소 패밀리와 st가 지정한 소켓 타입, 프로토콜 번호 i로 이름 없는 연결된 소켓 쌍을 만들어요.