NetworkSocketAPI

Dependencies:   DnsQuery

Dependents:   HelloWizFi250Interface

Fork of NetworkSocketAPI by NetworkSocketAPI

Committer:
geky
Date:
Tue Apr 05 19:21:41 2016 +0000
Revision:
84:d317e056fd20
Parent:
80:9c6673c93082
Child:
86:7ca9776b9cc0
Added thunk for Socket class

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Christopher Haster 80:9c6673c93082 1 /* Socket
Christopher Haster 80:9c6673c93082 2 * Copyright (c) 2015 ARM Limited
Christopher Haster 80:9c6673c93082 3 *
Christopher Haster 80:9c6673c93082 4 * Licensed under the Apache License, Version 2.0 (the "License");
Christopher Haster 80:9c6673c93082 5 * you may not use this file except in compliance with the License.
Christopher Haster 80:9c6673c93082 6 * You may obtain a copy of the License at
Christopher Haster 80:9c6673c93082 7 *
Christopher Haster 80:9c6673c93082 8 * http://www.apache.org/licenses/LICENSE-2.0
Christopher Haster 80:9c6673c93082 9 *
Christopher Haster 80:9c6673c93082 10 * Unless required by applicable law or agreed to in writing, software
Christopher Haster 80:9c6673c93082 11 * distributed under the License is distributed on an "AS IS" BASIS,
Christopher Haster 80:9c6673c93082 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Christopher Haster 80:9c6673c93082 13 * See the License for the specific language governing permissions and
Christopher Haster 80:9c6673c93082 14 * limitations under the License.
Christopher Haster 80:9c6673c93082 15 */
Christopher Haster 80:9c6673c93082 16
Christopher Haster 80:9c6673c93082 17 #include "DnsQuery.h"
Christopher Haster 80:9c6673c93082 18
Christopher Haster 80:9c6673c93082 19 int NetworkInterface::gethostbyname(const char *name, char *dest)
Christopher Haster 80:9c6673c93082 20 {
Christopher Haster 80:9c6673c93082 21 return dnsQuery(this, name, dest);
Christopher Haster 80:9c6673c93082 22 }