mirror of
https://github.com/1f349/dendrite.git
synced 2024-12-23 16:54:08 +00:00
1002e87b60
* Pinecone demo * Enable multicast, fix HTTP routing * Fix multicast import * Fix build * Update Pinecone demo * Fix the keys * Tweaks * Pinecone room directory support (early) * Fix gobind-pinecone * Add pinecone listener * Fix public key value * Use AuthenticatedConnect for dial * Fix gobind-pinecone * Stop panics * Give fsAPI to keyserver * Pinecone demo fixes * Update gobind build scripts * Account creation * Tweaks * Setup tweaks * API tweaks * API tweaks * API tweaks * Port mutex * Re-enable multicast * Add ReadCopy * Update quic-go, fixes * Shutdowns fixed for iOS * Update build script * Add WebSocket support * Bug fixes * Netconn context * Fix WebSocket connectivity * Fixes to gobind API * Strip frameworks * Configurability updates * Update go.mod * Update go.mod/go.sum * Update go.mod/go.sum * Update go.mod/go.sum * Try to stay connected tto static peer * Update gobind-pinecone * Update go.mod/go.sum * Test uTP+TLS * Use HTTP/2 * Don't use HTTP/2 * Update go.mod/go.sum * Attempt to reconnect to the static peer if it drops * Stay connected to static peers more stickily * Retry room directory lookups if they fail * NewQUIC -> NewSessions * Storage updates * Don't return immediately when there's nothing to sync * Updates * Try to reconnect to static peer more * Update go.mod/go.sum * Require Go 1.14 * Update go.mod/go.sum * Update go.mod/go.sum
26 lines
453 B
Go
26 lines
453 B
Go
// +build ios
|
|
|
|
package gobind
|
|
|
|
/*
|
|
#cgo CFLAGS: -x objective-c
|
|
#cgo LDFLAGS: -framework Foundation
|
|
#import <Foundation/Foundation.h>
|
|
void Log(const char *text) {
|
|
NSString *nss = [NSString stringWithUTF8String:text];
|
|
NSLog(@"%@", nss);
|
|
}
|
|
*/
|
|
import "C"
|
|
import "unsafe"
|
|
|
|
type BindLogger struct {
|
|
}
|
|
|
|
func (nsl BindLogger) Write(p []byte) (n int, err error) {
|
|
p = append(p, 0)
|
|
cstr := (*C.char)(unsafe.Pointer(&p[0]))
|
|
C.Log(cstr)
|
|
return len(p), nil
|
|
}
|