While working on an implementation of the wire protocol from a network standard, I needed to implement an error response. These errors may come in one of several flavors which is encoded and sent along with the error:
- Cancel
| package transaction | |
| import ( | |
| "context" | |
| "database/sql" | |
| ) | |
| // Exec creates a transaction and calls f. | |
| // When it is finished, it cleans up the transaction. If an error occured it | |
| // attempts to rollback, if not it commits. |
While working on an implementation of the wire protocol from a network standard, I needed to implement an error response. These errors may come in one of several flavors which is encoded and sent along with the error:
| testtoken | |
| main | |
| *.sw[op] |
| license: gpl-3.0 |
I hereby claim:
To claim this, I am signing this object:
| .PHONY: build | |
| all: cameras | |
| cameras: cameras.c | |
| gcc -I/usr/include/libraw $< -o $@ -lraw |
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "os" | |
| ) | |
| func btoi(n bool) byte { | |
| if n { |
02-02 08:40:53.293 2514-2530/eu.siacs.conversations D/conversations﹕ Using
ciphers: [TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA,
SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA,
TLS_ECDH_ECDSA_WITH_RC4_128_SHA, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA,
TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDH_RSA_WITH_RC4_128_SHA,
TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA,
TLS_ECDHE_ECDSA_WITH_RC4_128_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
| #!/usr/bin/env python | |
| import sys | |
| import os | |
| from rawphoto.cr2 import Cr2 | |
| from rawphoto.nef import Nef | |
| def print_entries(raw, ifd, level=1): | |
| for name in ifd.entries: |
| ### ======= | |
| ### LOGGING | |
| ## | |
| ## loglevel: Verbosity of log files generated by ejabberd. | |
| ## 0: No ejabberd log at all (not recommended) | |
| ## 1: Critical | |
| ## 2: Error | |
| ## 3: Warning | |
| ## 4: Info |