equal
deleted
inserted
replaced
816 See also: #newTCPclientToHost:port:withTimeout:" |
816 See also: #newTCPclientToHost:port:withTimeout:" |
817 |
817 |
818 ^ self |
818 ^ self |
819 newTCPclientToHost:hostNameOrAddress |
819 newTCPclientToHost:hostNameOrAddress |
820 port:aPortOrServiceName |
820 port:aPortOrServiceName |
821 domain:nil |
821 domain:self defaultIpDomainForConnect |
822 withTimeout:nil |
822 withTimeout:nil |
823 |
823 |
824 " |
824 " |
825 Socket newTCPclientToHost:'www.exept.de' port:'http' |
825 Socket newTCPclientToHost:'www.exept.de' port:'https' |
826 " |
826 " |
827 |
827 |
828 "Created: 31.10.1995 / 18:54:11 / cg" |
828 "Created: 31.10.1995 / 18:54:11 / cg" |
829 ! |
829 ! |
830 |
830 |
1121 |
1121 |
1122 !Socket class methodsFor:'defaults'! |
1122 !Socket class methodsFor:'defaults'! |
1123 |
1123 |
1124 defaultIpDomainForConnect |
1124 defaultIpDomainForConnect |
1125 "answer the domain used to look up host names for connect: |
1125 "answer the domain used to look up host names for connect: |
1126 #AF_INET use only IPv4 |
1126 #AF_INET use only IPv4 |
1127 #AF_INET6 use only IPv6 |
1127 #AF_INET6 use only IPv6 |
1128 nil use both IPv4 and IPv6" |
1128 nil use both IPv4 and IPv6" |
1129 |
1129 |
1130 ^ #AF_INET |
1130 ^ nil |
1131 ! ! |
1131 ! ! |
1132 |
1132 |
1133 !Socket class methodsFor:'obsolete'! |
1133 !Socket class methodsFor:'obsolete'! |
1134 |
1134 |
1135 connectTo:service on:host |
1135 connectTo:service on:host |